function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"190080","map_x":"113.808238","map_y":"22.815131","pointname":"童程童美长安中心","pointaddress":"长安镇金业大厦","areaname":"长安新区","areacode":"100044019032"},{"id":"190079","map_x":"113.681357","map_y":"22.949881","pointname":"童程童美厚街中心","pointaddress":"厚街万达广场","areaname":"厚街镇","areacode":"100044019001"},{"id":"190078","map_x":"113.690933","map_y":"22.839292","pointname":"童程童美虎门中心","pointaddress":"万达万荟坊","areaname":"虎门镇","areacode":"100044019031"},{"id":"72719","map_x":"113.750339","map_y":"23.012356","pointname":"童程童美南城中心","pointaddress":"丰硕广场","areaname":"南城区","areacode":"100044019002"},{"id":"72718","map_x":"113.782238","map_y":"23.038806","pointname":"童程童美东城中心","pointaddress":"东城中路世博广场","areaname":"东城区","areacode":"100044019003"},]; //补充其他行政区分组 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(`