function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"114726","map_x":"116.441762","map_y":"39.890714","pointname":"广渠门校区","pointaddress":"广渠门校区","areaname":"东城区","areacode":"100011001001"},{"id":"114725","map_x":"116.307335","map_y":"39.914631","pointname":"公主坟校区","pointaddress":"公主坟校区","areaname":"海淀区","areacode":"100011001008"},{"id":"91709","map_x":"116.660107","map_y":"39.914221","pointname":"通州校区","pointaddress":"北京市通州区新华西街15-6号","areaname":"通州区","areacode":"100011001012"},{"id":"91708","map_x":"116.659404","map_y":"40.132481","pointname":"顺义校区","pointaddress":"北京市顺义区金街国际大厦C座","areaname":"顺义区","areacode":"100011001013"},{"id":"91707","map_x":"116.318311","map_y":"40.041312","pointname":"上地校区","pointaddress":"北京市海淀区信息路甲28号科实大厦A座","areaname":"海淀区","areacode":"100011001008"},{"id":"91706","map_x":"116.29566","map_y":"39.967417","pointname":"世纪金源校区","pointaddress":"北京市海淀区金源时代商务中心2号楼C座","areaname":"海淀区","areacode":"100011001008"},{"id":"91705","map_x":"116.418396","map_y":"39.993356","pointname":"亚奥校区","pointaddress":"北京市朝阳区安苑北里26号","areaname":"朝阳区","areacode":"100011001005"},{"id":"26377","map_x":"116.452839","map_y":"39.949394","pointname":"东直门校区","pointaddress":"正东国际大厦b座","areaname":"东城区","areacode":"100011001001"},]; //补充其他行政区分组 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(`