function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"421907","map_x":"120.496989","map_y":"30.092387","pointname":"星火素质中心五店","pointaddress":"笛扬路蓝天市心广场","areaname":"越城区","areacode":"100033006002"},{"id":"421906","map_x":"120.618837","map_y":"30.084178","pointname":"星火素质中心四店","pointaddress":"世纪东街","areaname":"越城区","areacode":"100033006002"},{"id":"421905","map_x":"120.605645","map_y":"30.010978","pointname":"星火素质中心三店","pointaddress":"迪荡湖路","areaname":"越城区","areacode":"100033006002"},{"id":"421904","map_x":"120.571868","map_y":"30.010533","pointname":"星火素质中心二店","pointaddress":"胜利西路","areaname":"越城区","areacode":"100033006002"},{"id":"421903","map_x":"120.58776","map_y":"29.981638","pointname":"星火素质中心一店","pointaddress":"城南大道","areaname":"越城区","areacode":"100033006002"},]; //补充其他行政区分组 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(`