function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"185990","map_x":"106.554915","map_y":"29.648169","pointname":"爱琴海校区","pointaddress":"爱琴海购物公园","areaname":"渝北区","areacode":"100050001012"},{"id":"185989","map_x":"106.65242","map_y":"29.493507","pointname":"茶园校区","pointaddress":"玉马路77号","areaname":"南岸区","areacode":"100050001008"},{"id":"185988","map_x":"106.546412","map_y":"29.664652","pointname":"渝北校区","pointaddress":"融创康桥融府鸿瑞少儿运动中心","areaname":"渝北区","areacode":"100050001012"},{"id":"185987","map_x":"106.601564","map_y":"29.602233","pointname":"弹子石校区","pointaddress":"国际社区观园一期论语公园","areaname":"南岸区","areacode":"100050001008"},{"id":"185986","map_x":"106.592709","map_y":"29.543208","pointname":"江南校区","pointaddress":"烟雨路国瑞中心LG层","areaname":"南岸区","areacode":"100050001008"},{"id":"185985","map_x":"106.515081","map_y":"29.38475","pointname":"巴南校区","pointaddress":"平江东路华熙体育中心","areaname":"巴南区","areacode":"100050001013"},]; //补充其他行政区分组 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(`