function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"95613","map_x":"104.122529","map_y":"30.647965","pointname":"万象城校区","pointaddress":"成华区双福一路66号","areaname":"成华区","areacode":"100051001008"},{"id":"95612","map_x":"104.009774","map_y":"30.668737","pointname":"优品道校区","pointaddress":"青羊区优品街62号","areaname":"青羊区","areacode":"100051001005"},{"id":"95611","map_x":"104.11983","map_y":"30.677382","pointname":"建设路校区","pointaddress":"成华区建业路68号","areaname":"成华区","areacode":"100051001008"},{"id":"95610","map_x":"104.080367","map_y":"30.598338","pointname":"天府长城校区","pointaddress":"天府长城天久南巷268号","areaname":"武侯区","areacode":"100051001007"},{"id":"95608","map_x":"104.047978","map_y":"30.556568","pointname":"鹭洲里校区","pointaddress":"高新区天府二街鹭洲里商场2楼","areaname":"武侯区","areacode":"100051001007"},{"id":"95607","map_x":"104.061326","map_y":"30.621028","pointname":"紫荆校区","pointaddress":"紫竹中街20号","areaname":"武侯区","areacode":"100051001007"},]; //补充其他行政区分组 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(`