小程序 一个function无法正常调用另一个function;Cannot read property ‘xxx‘ of undefined
一个function无法调用另一个function看看这里
var that = this
wx.getLocation({
type: 'wgs84',
success:function (res) {
that.setData({
location_id:res.longitude+','+res.latitude
})
},
原创
2021-03-25 19:12:12 ·
917 阅读 ·
0 评论