淡定胡萝卜

文章
2
资源
0
加入时间
3年1月12天

小程序采坑:wx.getLocation不起作用,如何解决?

今天写个获取小程序定位的功能,发现怎么调用工具和真机都不需要调用官网wx.getLocation接口wxml: <button catchtap="Position" >新增定位</button>js: Position(e) { wx.getLocation({ type: 'wgs84', success(res) { latitude = res.latitude