userAuthorized1
来源:17-3 promisic完美实现全小程序async和await

xq0714
2020-04-28
老师,请问在哪里讲的userAuthorized1 没有看到过
写回答
3回答
-
你是对的。第17章是后来更新的,代码经过了多次重构,userAuthorized1并没有在这个课程里讲
112020-07-09 -
YF飞机哥
2020-07-09
其实还有问题,userAuthorized原先是写在onLoad里的,之后变成了onShow里面
我的代码:
/** * 生命周期函数--监听页面加载 */ onLoad: function (options) { this.userAuthoried() this.getMyBookCount() this.getMyFavor() },
老师的代码
/** * 生命周期函数--监听页面显示 */ onShow: function () { this.userAuthorized() this.getMyBookCount() this.getMyFavor() },
一个在onLoad ,一个在onShow,这两者有啥区别哦
00 -
7七月
2020-04-28
这我忘记了。。。好久了。或者你详细说明下
012020-04-28