function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"1473","map_x":"113.549258","map_y":"34.807696","pointname":"总校","pointaddress":"西开发区长椿路冬青街电子商务产业园","areaname":"高新区","areacode":"100041001086"},{"id":"49341","map_x":"113.622625","map_y":"34.761326","pointname":"中原校区","pointaddress":"郑州市中原区桐柏路建设路东200米路南华亚广场C座2楼","areaname":"中原区","areacode":"100041001002"},{"id":"49342","map_x":"113.660417","map_y":"34.771873","pointname":"大石桥校区","pointaddress":"大石桥soho广场","areaname":"金水区","areacode":"100041001005"},{"id":"49343","map_x":"113.648761","map_y":"34.732421","pointname":"升龙校区","pointaddress":"大学路政通路升龙国际","areaname":"二七区","areacode":"100041001003"},{"id":"49345","map_x":"113.058213","map_y":"34.467907","pointname":"登封校区","pointaddress":"嵩高路","areaname":"登封市","areacode":"100041001085"},]; //补充其他行政区分组 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(`