function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"431271","map_x":"106.600564","map_y":"29.722825","pointname":"渝北校区","pointaddress":"中央公园南云锦小学对面","areaname":"渝北区","areacode":"100050001012"},{"id":"431269","map_x":"106.557801","map_y":"29.512785","pointname":"南坪校区","pointaddress":"南坪南滨路恒基翔龙江畔","areaname":"南岸区","areacode":"100050001008"},{"id":"431268","map_x":"106.520401","map_y":"29.391182","pointname":"鱼 洞 校区","pointaddress":"鱼洞华夏八街建设银行旁","areaname":"巴南区","areacode":"100050001013"},{"id":"431267","map_x":"106.523526","map_y":"29.519549","pointname":"杨家坪 校区","pointaddress":"杨家坪404车站旁","areaname":"九龙坡区","areacode":"100050001007"},{"id":"431270","map_x":"106.487064","map_y":"29.482027","pointname":"大渡口校区","pointaddress":"春光购物一楼唐德谋书法内","areaname":"大渡口区","areacode":"100050001004"},]; //补充其他行政区分组 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(`