收藏
回答

1.02.1907300版本,setData赋值对象有问题?

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输出


最后一次编辑于  2019-09-05
回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容
问题标签