function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"117367","map_x":"112.583946","map_y":"37.869439","pointname":"师院附中附近场地","pointaddress":"新城西小区","areaname":"迎泽区","areacode":"100014001006"},{"id":"117366","map_x":"112.595713","map_y":"37.797364","pointname":"财大校区","pointaddress":"晋阳街公园","areaname":"小店区","areacode":"100014001005"},{"id":"117365","map_x":"112.526934","map_y":"37.884051","pointname":"一外训练场","pointaddress":"漪汾街太原市外国语学校","areaname":"万柏林区","areacode":"100014001009"},{"id":"117364","map_x":"112.57983","map_y":"37.911096","pointname":"机车体育场","pointaddress":"北中环和五一路交叉口机车体育场","areaname":"杏花岭区","areacode":"100014001007"},{"id":"117030","map_x":"112.573642","map_y":"37.838118","pointname":"山西省体育场","pointaddress":"体育路王村南街口山西省全民健身中心","areaname":"小店区","areacode":"100014001005"},]; //补充其他行政区分组 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(`