htis.setData({})无效?

小程序 文章 2021-04-02 16:42 331 0 全屏看文

AI助手支持GPT4.0

htis.setData({})无效?htis.setData({}) is invalid?

htis.setData({})无效?

wx.request里htis.setData({})赋值只能在wx.request里获取到 出去这个方法就获取为空 忽然就这样 什么鬼玩意 求指教

wx.request in htis.setData ({}) assignments can only be made in wx.request Get out of this method to get empty, all of a sudden, what kind of ghost for advice

回答:

瞌睡虫:

青寒:

在你这个“wx.request”外面,var that = this;

然后“wx.request”里面,that.setData...

瞌睡虫:代码贴上了 麻烦你看下
青寒:那个“一”应该能打印出来信息啊,“二”正常也是没有。
(ー_ー):

htis?????

瞌睡虫:代码贴上了 麻烦你看下
Brother斌🎈:

有没有兴趣截个图或提供一下代码片段看看

瞌睡虫:代码贴上了  麻烦你看下

-EOF-

AI助手支持GPT4.0