getLocation() {
let that = this
uni.getLocation({
type: 'gcj02',
success: function(res) {
that.longitude = res.longitude
that.latitude = res.latitude}
})
}
uniapp中使用内置组件map地图(获取当前位置信息)
最新推荐文章于 2024-06-12 16:37:42 发布
getLocation() {
let that = this
uni.getLocation({
type: 'gcj02',
success: function(res) {
that.longitude = res.longitude
that.latitude = res.latitude}
})
}