function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"171222","map_x":"113.563255","map_y":"34.825882","pointname":"中原区","pointaddress":"雪松路与迎春街交叉口朗悦公园茂2号馆3层","areaname":"中原区","areacode":"100041001002"},{"id":"171221","map_x":"113.646244","map_y":"34.826416","pointname":"金水区","pointaddress":"国基路与索凌路交叉口西500米路北","areaname":"金水区","areacode":"100041001005"},{"id":"171219","map_x":"113.736456","map_y":"34.791229","pointname":"金水区","pointaddress":"农业东路与如意西路交叉口北200米路东建业总部港E座2层","areaname":"金水区","areacode":"100041001005"},{"id":"171215","map_x":"113.626441","map_y":"34.74832","pointname":"中原区","pointaddress":"伊河路与工人路交叉口西南角光合大厦1层","areaname":"中原区","areacode":"100041001002"},{"id":"171212","map_x":"113.688255","map_y":"34.784773","pointname":"金水区","pointaddress":"花园路56号郑花大厦3层","areaname":"金水区","areacode":"100041001005"},{"id":"117795","map_x":"113.633803","map_y":"34.72008","pointname":"嵩山南路校区","pointaddress":"郑密路99号亚星盛世悦都","areaname":"二七区","areacode":"100041001003"},{"id":"117794","map_x":"113.75534","map_y":"34.764274","pointname":"郑东图书馆校区","pointaddress":"郑州市金水区兴荣街/客文二街","areaname":"金水区","areacode":"100041001005"},]; //补充其他行政区分组 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(`