function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"99979","map_x":"113.248583","map_y":"23.157059","pointname":"广州荔湾财富大厦校区","pointaddress":"西湾路152号","areaname":"荔湾区","areacode":"100044001003"},{"id":"99978","map_x":"113.348946","map_y":"23.147686","pointname":"广州天河北校区","pointaddress":"天河北路689号","areaname":"天河区","areacode":"100044001006"},{"id":"99977","map_x":"113.286638","map_y":"23.098376","pointname":"广州海珠昌岗校区","pointaddress":"江南大道南408号","areaname":"海珠区","areacode":"100044001005"},{"id":"99976","map_x":"113.36682","map_y":"22.95624","pointname":"广州番禺骏和广场校区","pointaddress":"市桥街捷进二路1号","areaname":"番禺区","areacode":"100044001013"},{"id":"99975","map_x":"113.273627","map_y":"23.131602","pointname":"广州北京路校区","pointaddress":"中山五路33号","areaname":"越秀区","areacode":"100044001004"},{"id":"66912","map_x":"113.330303","map_y":"23.131074","pointname":"广州正佳广场校区","pointaddress":"天河路228号","areaname":"天河区","areacode":"100044001006"},]; //补充其他行政区分组 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(`