function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"195034","map_x":"121.55357","map_y":"29.840665","pointname":"文通路","pointaddress":"文通路158号","areaname":"鄞州区","areacode":"100033002012"},{"id":"195033","map_x":"121.709637","map_y":"29.817799","pointname":"东吴栗树塘分校","pointaddress":"友谊驾校","areaname":"鄞州区","areacode":"100033002012"},{"id":"195032","map_x":"121.518634","map_y":"29.840433","pointname":"陈江岸新村","pointaddress":"塘西村陈江岸新村","areaname":"海曙区","areacode":"100033002003"},{"id":"195031","map_x":"121.559312","map_y":"29.860688","pointname":"日月星城","pointaddress":"江东南路353号","areaname":"鄞州区","areacode":"100033002012"},{"id":"195030","map_x":"121.575442","map_y":"29.854057","pointname":"凤凰新村","pointaddress":"凤凰新村","areaname":"鄞州区","areacode":"100033002012"},{"id":"195029","map_x":"121.549364","map_y":"29.80285","pointname":"蝶缘路749号","pointaddress":"蝶缘路749号","areaname":"鄞州区","areacode":"100033002012"},{"id":"195028","map_x":"121.611996","map_y":"29.814105","pointname":"128商业广场","pointaddress":"启明路108号","areaname":"鄞州区","areacode":"100033002012"},{"id":"195027","map_x":"121.63028","map_y":"29.853635","pointname":"鄞州区海太工业园","pointaddress":"海太工业园","areaname":"鄞州区","areacode":"100033002012"},]; //补充其他行政区分组 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(`