html52.com
我爱小程序-开发者交流社区

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

console输出

网友回复

null:

1.02.1907160版本,console输出的

1.02.1907160版本,console输出的娇华:你好,麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/

娇华:

你好,麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付