摘要: 在一般的函数中: this.setData是正确的。 但当在函数中有个请求(wx.request)时: 或者执行定时任务时候: 这样会报错误:this.setData is not a function. 这个在新的函数内的this代表的是这个函数体,所有是没有this.setData。这个类似ja 阅读全文
posted @ 2018-01-22 16:09 ngulc 阅读(3835) 评论(0) 推荐(0) 编辑