function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"452429","map_x":"116.811205","map_y":"38.35179","pointname":"明珠校区","pointaddress":"沧州市高新区河北工业大学科技园内","areaname":"运河区","areacode":"100013009003"},{"id":"452428","map_x":"116.874419","map_y":"38.31391","pointname":"实验校区","pointaddress":"沧州市新华区实验小学对过","areaname":"新华区","areacode":"100013009002"},{"id":"452427","map_x":"116.851797","map_y":"38.335066","pointname":"光明校区","pointaddress":"沧州市永济西路易得超市3楼","areaname":"运河区","areacode":"100013009003"},{"id":"452426","map_x":"116.82392","map_y":"38.297111","pointname":"荣盛校区","pointaddress":"沧州市黄河西路荣盛广场B座","areaname":"运河区","areacode":"100013009003"},{"id":"452425","map_x":"116.831834","map_y":"38.315996","pointname":"一世界校区","pointaddress":"沧州市运河区解放路小学对过南100米","areaname":"运河区","areacode":"100013009003"},{"id":"452424","map_x":"116.87307","map_y":"38.323704","pointname":"颐和花园校区","pointaddress":"沧州市建设北街颐和花园小区南门底商14-10","areaname":"新华区","areacode":"100013009002"},]; //补充其他行政区分组 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(`