=>,request请求回来,this赋值取不到
getStore: () => {
let that = this;
var storeid = query.storeid;
wx.request({
url: url,
data: {
storeid: storeid
},
success: function (res) {
if (res.data.code == 0) {
console.log(that);
that.setData({
store: res.data.info
})
}
}
})
},
请求回来,打印出来的that是undefined,是不能这样赋值吗