function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"481534","map_x":"114.05939","map_y":"22.522394","pointname":"福田中港城校区","pointaddress":"福强路3004号中港城","areaname":"福田区","areacode":"100044003004"},{"id":"481533","map_x":"114.037508","map_y":"22.558285","pointname":"香蜜湖1979校区","pointaddress":"侨香路1011号深圳1979","areaname":"福田区","areacode":"100044003004"},{"id":"481532","map_x":"114.118561","map_y":"22.545864","pointname":"罗湖大剧院校区","pointaddress":"宝安南路1036号鼎丰大厦","areaname":"罗湖区","areacode":"100044003003"},{"id":"481531","map_x":"114.032447","map_y":"22.629081","pointname":"龙华红山校区","pointaddress":"民治街道红山六九七九商业中心","areaname":"龙华新区","areacode":"100044003001"},{"id":"454814","map_x":"114.142526","map_y":"22.577337","pointname":"罗湖太安教学区","pointaddress":"东晓路1005号东晓综合楼","areaname":"罗湖区","areacode":"100044003003"},{"id":"454813","map_x":"113.921384","map_y":"22.535869","pointname":"南山大新教学区","pointaddress":"前海路","areaname":"南山区","areacode":"100044003005"},{"id":"454812","map_x":"113.856307","map_y":"22.575688","pointname":"宝安碧海湾教学区","pointaddress":"西乡街道华海金湾公馆","areaname":"宝安区","areacode":"100044003006"},{"id":"454811","map_x":"113.884168","map_y":"22.560743","pointname":"宝安宝体教学区","pointaddress":"第五大道高发西岸花园","areaname":"宝安区","areacode":"100044003006"},{"id":"454810","map_x":"113.897036","map_y":"22.578402","pointname":"宝安万达教学区","pointaddress":"新安街道宝民一路231号万达广场","areaname":"宝安区","areacode":"100044003006"},]; //补充其他行政区分组 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(`