function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"428358","map_x":"103.835594","map_y":"30.686257","pointname":"温江校区","pointaddress":"四川省成都市温江区海科路东段84号","areaname":"温江区","areacode":"100051001015"},{"id":"428357","map_x":"104.065619","map_y":"30.55341","pointname":"高新校区","pointaddress":"四川省成都市武侯区天府三街288号","areaname":"武侯区","areacode":"100051001007"},{"id":"428356","map_x":"104.070905","map_y":"30.676822","pointname":"铂金城校区","pointaddress":"青羊区青龙街27号铂金·城购物广场","areaname":"青羊区","areacode":"100051001005"},{"id":"428355","map_x":"104.087081","map_y":"30.66012","pointname":"IFS校区","pointaddress":"红星路三段1号IFS国际金融中心","areaname":"锦江区","areacode":"100051001004"},{"id":"427281","map_x":"104.074423","map_y":"30.621795","pointname":"新东方国际教育","pointaddress":"人民南路四段45号新希望大厦","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(`