function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"94002","map_x":"121.49056","map_y":"31.273869","pointname":"虹口足球场校区","pointaddress":"虹口区甜爱支路24-50号","areaname":"虹口区","areacode":"100031001009"},{"id":"94000","map_x":"121.394043","map_y":"31.219927","pointname":"天山缤谷校区","pointaddress":"长宁区天山路341号缤谷文化休闲广场","areaname":"长宁区","areacode":"100031001005"},{"id":"83851","map_x":"121.406865","map_y":"31.13699","pointname":"南方商城校区","pointaddress":"闵行区沪闵路7250号","areaname":"闵行区","areacode":"100031001012"},{"id":"83850","map_x":"121.49323","map_y":"31.214454","pointname":"西藏南路校区","pointaddress":"黄浦区西藏南路1208号","areaname":"黄浦区","areacode":"100031001001"},{"id":"70996","map_x":"121.456574","map_y":"31.218847","pointname":"淮海中路校区","pointaddress":"淮海中路1325号","areaname":"徐汇区","areacode":"100031001004"},{"id":"71014","map_x":"121.520091","map_y":"31.30843","pointname":"五角场校区","pointaddress":"政通路177号","areaname":"杨浦区","areacode":"100031001010"},{"id":"70997","map_x":"121.557087","map_y":"31.226774","pointname":"世纪公园校区","pointaddress":"民生路1518号","areaname":"浦东新区","areacode":"100031001015"},]; //补充其他行政区分组 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(`