function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"114856","map_x":"113.42146","map_y":"23.197823","pointname":"极光百灵鸟高塘石联络点","pointaddress":"高塘石石二大街18号","areaname":"天河区","areacode":"100044001006"},{"id":"114824","map_x":"113.274057","map_y":"23.22792","pointname":"极光员村联络点","pointaddress":"军民西路1号","areaname":"白云区","areacode":"100044001011"},{"id":"114822","map_x":"113.270836","map_y":"23.203463","pointname":"极光心随羽动联络点","pointaddress":"机场北路1600号","areaname":"白云区","areacode":"100044001011"},{"id":"114821","map_x":"113.296608","map_y":"23.224286","pointname":"极光云山诗意联络点","pointaddress":"黄边北路","areaname":"白云区","areacode":"100044001011"},{"id":"114819","map_x":"113.3052","map_y":"23.220756","pointname":"极光广弘联络点","pointaddress":"丛云路820号","areaname":"白云区","areacode":"100044001011"},{"id":"100664","map_x":"113.268119","map_y":"23.181035","pointname":"极光南云联络点","pointaddress":"机场路航云南街280号","areaname":"白云区","areacode":"100044001011"},]; //补充其他行政区分组 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(`