function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"116408","map_x":"113.015644","map_y":"28.119181","pointname":"德思勤校区","pointaddress":"德思勤创业大街A7栋","areaname":"雨花区","areacode":"100043001011"},{"id":"78704","map_x":"112.994995","map_y":"28.229832","pointname":"华创店","pointaddress":"华创国际广场裙楼南区商业中心负一楼","areaname":"开福区","areacode":"100043001005"},{"id":"78703","map_x":"112.949068","map_y":"28.242005","pointname":"24品店","pointaddress":"24品生活中心三楼","areaname":"岳麓区","areacode":"100043001004"},{"id":"46025","map_x":"113.03806","map_y":"28.197682","pointname":"万家丽校区","pointaddress":"长沙市芙蓉区万家丽国际Mall","areaname":"芙蓉区","areacode":"100043001002"},{"id":"19655","map_x":"112.985605","map_y":"28.255908","pointname":"金源校区","pointaddress":"世纪金源购物中心北区三楼","areaname":"开福区","areacode":"100043001005"},{"id":"19656","map_x":"113.008827","map_y":"28.182708","pointname":"左家塘校区","pointaddress":"雨花区城南路与曙光路交汇通程万惠左侧东方新世界","areaname":"雨花区","areacode":"100043001011"},{"id":"46026","map_x":"113.040985","map_y":"28.140735","pointname":"喜盈门校区","pointaddress":"长沙市雨花区万家丽路木莲路喜盈门范城5号楼1楼","areaname":"雨花区","areacode":"100043001011"},]; //补充其他行政区分组 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(`