at onSocketMessage callback function Typ
发布于 5 年前 作者 kwu 17582 次浏览 来自 问答

at onSocketMessage callback function

TypeError: Cannot read property ‘setData’ of undefined

function show_data(result) {

var that=this

that.setData({

})

}

这个问题如何处理?咋回事?

1 回复

不完整的代码暂时无法看出问题,麻烦给个相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

回到顶部