var point = new BMap.Point(longitude,latitude);//用所定位的经纬度查找所在地省市街道等信息var gc = new BMap.Geocoder();gc.getLocation(point, function (rs) {$rootScope.addressCity = rs.address;// $scope.addressCity = $rootScope.addressCity;$scope.addressCity = ($rootScope.addressCity.split('省')[1]).split('市')[0];// alert($rootScope.addressCity);});
1000字范文,内容丰富有趣,学习的好帮手!