function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"91147","map_x":"114.059602","map_y":"22.526723","pointname":"石厦校区","pointaddress":"石厦北二街89号马成时代广场","areaname":"福田区","areacode":"100044003004"},{"id":"91146","map_x":"114.066762","map_y":"22.575638","pointname":"卓悦汇校区","pointaddress":"中康路卓悦汇商场","areaname":"福田区","areacode":"100044003004"},{"id":"91028","map_x":"113.94996","map_y":"22.54625","pointname":"深大校区","pointaddress":"科技园文化广场","areaname":"南山区","areacode":"100044003005"},{"id":"91027","map_x":"113.891668","map_y":"22.564197","pointname":"宝安中心校区","pointaddress":"宝安中心海格堡","areaname":"宝安区","areacode":"100044003006"},{"id":"91026","map_x":"113.930619","map_y":"22.52306","pointname":"南山校区","pointaddress":"创业路东林教育城","areaname":"南山区","areacode":"100044003005"},{"id":"91025","map_x":"114.090288","map_y":"22.547082","pointname":"华强北校区","pointaddress":"深南大道3018号","areaname":"福田区","areacode":"100044003004"},{"id":"91024","map_x":"114.144584","map_y":"22.618918","pointname":"星都里校区","pointaddress":"龙岗大道2504号","areaname":"龙岗区","areacode":"100044003007"},{"id":"91023","map_x":"114.072444","map_y":"22.552806","pointname":"少年宫校区","pointaddress":"彩田路西红荔路男瑞思CC-times商场","areaname":"福田区","areacode":"100044003004"},]; //补充其他行政区分组 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(`