setTimeout( function (){ this .setData({ hasUserInfo: true }) },1000) |
网友回复:
A***:
给参数
W***:
e.detail.userInfo
这段作为参数传进去
金***:
this 指向错了。。。
张***:
怎么给参数哈,怎么样this?我刚刚写错了,没有e.detail.userInfo
金***:
setTimeout 外层
var that = this
setTimeout里面
that.setData({})
张***:
好的,谢谢哈
C***:系统记录