function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"415394","map_x":"113.983282","map_y":"22.544023","pointname":"南山世界之窗店","pointaddress":"沙河街道世界花园聚龙居","areaname":"南山区","areacode":"100044003005"},{"id":"415393","map_x":"113.935105","map_y":"22.521927","pointname":"南山保利店","pointaddress":"保利城花园","areaname":"南山区","areacode":"100044003005"},{"id":"415392","map_x":"114.041523","map_y":"22.559932","pointname":"福田香梅北店","pointaddress":"香梅北天明居","areaname":"福田区","areacode":"100044003004"},{"id":"415391","map_x":"113.938245","map_y":"22.549513","pointname":"南山麒麟花园店","pointaddress":"玉泉路3号麒麟花园金麒麟","areaname":"南山区","areacode":"100044003005"},{"id":"415390","map_x":"114.097642","map_y":"22.559752","pointname":"福田百花店","pointaddress":"百花四路长乐花园","areaname":"福田区","areacode":"100044003004"},]; //补充其他行政区分组 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(`