function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"438133","map_x":"102.738618","map_y":"25.10742","pointname":"志在启航考研和谐校区","pointaddress":"和谐广场","areaname":"五华区","areacode":"100053001002"},{"id":"438134","map_x":"102.722028","map_y":"25.08824","pointname":"志在启航考研市区校区","pointaddress":"财大春园博华楼","areaname":"五华区","areacode":"100053001002"},{"id":"435761","map_x":"102.668635","map_y":"25.092792","pointname":"志在教育总部","pointaddress":"科创大厦","areaname":"五华区","areacode":"100053001002"},{"id":"435760","map_x":"103.012974","map_y":"25.241082","pointname":"志在启航考研杨林校区","pointaddress":"文林路汇尔佳商业广场","areaname":"嵩明县","areacode":"100053001027"},{"id":"435759","map_x":"102.569575","map_y":"24.884816","pointname":"志在启航考研安宁校区","pointaddress":"云南财经大学安宁校区","areaname":"安宁市","areacode":"100053001081"},{"id":"435758","map_x":"102.848934","map_y":"24.848563","pointname":"志在启航考研呈贡校区","pointaddress":"云上小镇","areaname":"呈贡县","areacode":"100053001021"},{"id":"435757","map_x":"102.706395","map_y":"25.066683","pointname":"莲花池校区","pointaddress":"莲花池正街","areaname":"高新区","areacode":"100053001001"},]; //补充其他行政区分组 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(`