功能展示:
js代码,功能实现:
wx.getLocation({
altitude: 'true',
}).then(res=>{
console.log(res);
wx.openLocation({
latitude: res.latitude,
longitude: res.longitude,
})
})
},