uniapp开发 中,点击选择位置并获取经纬度。
selectaddress(){
var that=this;
uni.chooseLocation({
success: function (res) {
console.log('位置名称:' + res.name);
console.log('详细地址:' + res.address);
console.log('纬度:' + res.latitude);
console.log('经度:' + res.longitude);
that.address=res.address
}
});
},