微信更新7.0,使用wx.chooseLocation 开发,体验版都没有反应

发布于 7 年前作者 chenping7119 次浏览最后编辑 7 年前来自 ask

selectlocation: function() {

var that = this

wx.chooseLocation({

success: function(res) {

// success

console.log(res, res.latitude, res.longitude, ‘出发地’)

that.setData({

departure: res.name,

so_lat: res.latitude,

so_lng: res.longitude

})

},

})

},

1 回复