1.02.1907300版本,setData赋值对象有问题?
发布于 7 年前 作者 vzhao 10214 次浏览 来自 官方Issues
getAddress() {
 
 
 
let that = this
 
wx.getStorage({
 
key: 'receive',
 
success: function (res) {
 
console.log(res)
 
console.log(res.data)
 
if (res.errMsg == 'getStorage:ok') {
 
let data = res.data
 
let receiveDesc = data.province
 
that.setData({
 
receiveDesc: receiveDesc,
 
receive: res.data
 
})
 
console.log(that.data.receive)
 
}
 
},
 
})
 
}

console输出

2 回复

1.02.1907160版本,console输出的

回到顶部