function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"172053","map_x":"116.303084","map_y":"39.973903","pointname":"丫丫音乐森林万柳校区","pointaddress":"海淀区万柳中路派顿大厦4层","areaname":"海淀区","areacode":"100011001008"},{"id":"172052","map_x":"116.388961","map_y":"39.967542","pointname":"丫丫音乐森林德胜校区","pointaddress":"西城区黄寺大街德胜置业大厦4号楼","areaname":"西城区","areacode":"100011001002"},{"id":"172051","map_x":"116.470367","map_y":"39.997691","pointname":"丫丫音乐森林望京校区","pointaddress":"朝阳区望京大西洋新城金石美苑","areaname":"朝阳区","areacode":"100011001005"},{"id":"172050","map_x":"116.425008","map_y":"40.003261","pointname":"丫丫音乐森林亚运村校","pointaddress":"朝阳区北苑路凯旋城D座","areaname":"朝阳区","areacode":"100011001005"},{"id":"172049","map_x":"116.421537","map_y":"40.068019","pointname":"丫丫音乐森林龙德校区","pointaddress":"昌平区天通苑立汤路龙得紫金商场","areaname":"昌平区","areacode":"100011001014"},]; //补充其他行政区分组 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(`