setTimeout(
function
(){
this
.setData({
hasUserInfo:
true
})
},1000)
好的,谢谢哈
怎么给参数哈,怎么样this?我刚刚写错了,没有e.detail.userInfo
setTimeout 外层
var that = this
setTimeout里面
that.setData({})
this 指向错了。。。
e.detail.userInfo这段作为参数传进去
e.detail.userInfo
给参数