function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"323488","map_x":"120.333992","map_y":"30.316054","pointname":"童程童美金沙湖校区","pointaddress":"龙湖金沙天街户外步行街","areaname":"上城区","areacode":"100033001002"},{"id":"323487","map_x":"120.222876","map_y":"30.217403","pointname":"童程童美滨江校区","pointaddress":"西兴街道江陵路1916号兴祺大厦","areaname":"上城区","areacode":"100033001002"},{"id":"323486","map_x":"120.26777","map_y":"30.184776","pointname":"童程童美萧山校区","pointaddress":"萧山山阴路688号恒隆广场","areaname":"上城区","areacode":"100033001002"},{"id":"323485","map_x":"120.214296","map_y":"30.271047","pointname":"童程童美天虹校区","pointaddress":"新塘路88号景芳站","areaname":"上城区","areacode":"100033001002"},{"id":"323484","map_x":"120.107079","map_y":"30.307217","pointname":"童程童美优盘校区","pointaddress":"萍水西街80号优盘时代","areaname":"上城区","areacode":"100033001002"},{"id":"323483","map_x":"120.086122","map_y":"30.338104","pointname":"童程童美新天地校区","pointaddress":"三墩新天地","areaname":"上城区","areacode":"100033001002"},{"id":"323482","map_x":"120.136435","map_y":"30.285338","pointname":"童程童美西湖校区","pointaddress":"学院路","areaname":"上城区","areacode":"100033001002"},]; //补充其他行政区分组 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(`