function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"456087","map_x":"106.517918","map_y":"29.533684","pointname":"九龙坡喜盈门校区","pointaddress":"袁家岗喜盈门范城","areaname":"九龙坡区","areacode":"100050001007"},{"id":"456086","map_x":"106.539831","map_y":"29.638835","pointname":"人和校区","pointaddress":"人和晶石公元","areaname":"渝北区","areacode":"100050001012"},{"id":"456085","map_x":"106.502436","map_y":"29.685709","pointname":"礼嘉晟景台校区","pointaddress":"晟景台","areaname":"渝北区","areacode":"100050001012"},{"id":"456084","map_x":"106.521991","map_y":"29.564752","pointname":"北岸江山校区","pointaddress":"北滨一路北岸江山商业街","areaname":"江北区","areacode":"100050001005"},{"id":"456083","map_x":"106.498301","map_y":"29.603514","pointname":"凯德九章校区","pointaddress":"冉家坝凯德广场","areaname":"渝北区","areacode":"100050001012"},]; //补充其他行政区分组 if(data_info.length>10){ var areaGroupArr=new Array(); var defaultCode=''; for(var i=0;i< data_info.length;i++){ if(data_info[i].id==campusid){ defaultCode=data_info[i].areacode; } var _item=areaGroupArr.find(it=>it.areacode==data_info[i].areacode); if(_item){ _item.count++; }else{ areaGroupArr.push({areacode:data_info[i].areacode,areaname:data_info[i].areaname,count:1,fid:data_info[i].id}); } } $('#areaul li:gt(0)').remove(); for(var i=0;i< areaGroupArr.length;i++){ $('#areaul').append(`