onSocketMessage 回调函数调用setData失败
发布于 5 年前 作者 hwu 18015 次浏览 来自 问答

onSocketMessage 回调函数调用setData赋值刷新时,一直出错提示:“ Cannot read property ‘setData’ of null;at pages/index/index drawTarget function;at onSocketMessage callback function


TypeError: Cannot read property ‘setData’ of null ”,这是什么原因,回调函数有什么要求?

1 回复

wx.onSocketMessage((res)=>{

})

刚谁赞的。。

回到顶部