import BMap from "BMap";
function myFun(result){
var cityName = result.name;
alert("当前定位城市:"+cityName);
}
var myCity = new BMap.LocalCity();
myCity.get(myFun);
import BMap from "BMap";
function myFun(result){
var cityName = result.name;
alert("当前定位城市:"+cityName);
}
var myCity = new BMap.LocalCity();
myCity.get(myFun);