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