微信小程序 --- Cannot read property 'setData' of null 解决

在外部定义一个为 this 的 that

原文地址:https://www.cnblogs.com/mafeng/p/10716504.html