function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"481295","map_x":"108.946712","map_y":"34.287787","pointname":"西安北校区","pointaddress":"西安铁路职业技术学院","areaname":"莲湖区","areacode":"100061001004"},{"id":"481294","map_x":"108.784485","map_y":"34.048919","pointname":"东大校区","pointaddress":"西安城市建设职业学院","areaname":"长安区","areacode":"100061001016"},{"id":"170609","map_x":"109.088675","map_y":"34.236367","pointname":"智远专升本白鹿原校区","pointaddress":"西安市灞桥区海棠学院","areaname":"灞桥区","areacode":"100061001011"},{"id":"114126","map_x":"108.966265","map_y":"34.227687","pointname":"智远专升本雁塔校区","pointaddress":"财经大学雁塔校区","areaname":"雁塔区","areacode":"100061001013"},{"id":"114125","map_x":"108.946187","map_y":"34.330812","pointname":"智远专升本陕交通校区","pointaddress":"未央区交通职业技术学院","areaname":"未央区","areacode":"100061001012"},{"id":"114124","map_x":"108.94226","map_y":"34.12926","pointname":"智远专升本培华校区","pointaddress":"长安区培华学院","areaname":"长安区","areacode":"100061001016"},{"id":"100699","map_x":"108.714421","map_y":"34.319063","pointname":"智远专升本咸阳校区","pointaddress":"未央区世纪大道","areaname":"未央区","areacode":"100061001012"},{"id":"99493","map_x":"108.952481","map_y":"34.239212","pointname":"总校","pointaddress":"长安北路14号奥林匹克大厦","areaname":"碑林区","areacode":"100061001003"},]; //补充其他行政区分组 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(`