function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"323574","map_x":"116.98808","map_y":"36.655427","pointname":"童程童美槐荫联络点","pointaddress":"纬十二路连城广场","areaname":"槐荫区","areacode":"100024001003"},{"id":"323573","map_x":"117.011594","map_y":"36.599642","pointname":"童程童美领秀城联络点","pointaddress":"鲁能领秀城","areaname":"市中区","areacode":"100024001001"},{"id":"323572","map_x":"117.010836","map_y":"36.618653","pointname":"童程童美英雄山联络点","pointaddress":"英雄山路165号星工坊","areaname":"市中区","areacode":"100024001001"},{"id":"323571","map_x":"117.014659","map_y":"36.66655","pointname":"童程童美杆石桥联络点","pointaddress":"泺源大街金龙大厦","areaname":"市中区","areacode":"100024001001"},{"id":"323570","map_x":"117.062122","map_y":"36.684027","pointname":"童程童美山大路联络点","pointaddress":"山大路数码港大厦","areaname":"历下区","areacode":"100024001002"},{"id":"323569","map_x":"117.078872","map_y":"36.668002","pointname":"童程童美燕山联络点","pointaddress":"和平路和瑞广场","areaname":"历下区","areacode":"100024001002"},{"id":"323568","map_x":"117.137416","map_y":"36.692815","pointname":"童程童美高新联络点","pointaddress":"工业南路57号万达写字楼","areaname":"高新区","areacode":"100024001007"},]; //补充其他行政区分组 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(`