为什么下拉刷新需要使用 async/await?
为什么下拉刷新需要使用async/await?而加载更多和onLoad()缺不需要
// 下拉刷新
async onPullDownRefresh() {
await this.$invoke('topiclist', 'reload')
wepy.stopPullDownRefresh()
}
// 加载更多
onReachBottom() {
this.$invoke('topiclist', 'loadMore')
}
推荐文章: