微信小程序结合腾讯地图定位当前城市(位置)

onLoad(options) { this.getUserLocation() }, /** * 定位地点 */ getUserLocation: function () { let _this = this wx.getLocation({ type: 'gcj02', // type有两中类型
posted @ 2022-04-21 19:53  王越666  阅读(554)  评论(0编辑  收藏  举报