setData赋值不渲染?
onShow: function() {
//var _this=this;
console.log(wx.getStorageSync('CARD'))
var wb=this.data.WebSocket;
wb.card=wx.getStorageSync('CARD');
this.setData({
WebSocket:wb
})
console.log(this.data.WebSocket)
3 回复
你好,请提供能复现问题的简单代码片段
https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
--↓↓👍如果觉得有帮助的话请点个【有用】吧(不要问我小尾巴啦!!!)