function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"88069","map_x":"120.171634","map_y":"35.937013","pointname":"西海岸校区","pointaddress":"漓江西路1669号永旺梦乐城3楼326号","areaname":"开发区","areacode":"100024002015"},{"id":"79123","map_x":"120.433234","map_y":"36.165823","pointname":"李沧校区","pointaddress":"夏庄路1号伟东·乐客城","areaname":"李沧区","areacode":"100024002013"},{"id":"1396","map_x":"120.395583","map_y":"36.076056","pointname":"市南校区","pointaddress":"青岛市市南区英孚教育","areaname":"市南区","areacode":"100024002002"},{"id":"47407","map_x":"120.384348","map_y":"36.096129","pointname":"市北校区","pointaddress":"青岛市北区CBD卓越大融城","areaname":"市北区","areacode":"100024002003"},{"id":"26318","map_x":"120.473713","map_y":"36.109656","pointname":"崂山校区","pointaddress":"青岛市崂山区秦岭路17号金领世家网点","areaname":"崂山区","areacode":"100024002012"},]; //补充其他行政区分组 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(`