如图所示,这导致我下拉回弹的特别快,如何解决这种问题?
请求接口代码:
async getList() {...}
onLoad() {
let that = this;
that.getList();
}
下拉刷新代码:
onPullDownRefresh() {
console.log("下拉刷新")
this.onLoad();
wx.stopPullDownRefresh()
}
如图所示,这导致我下拉回弹的特别快,如何解决这种问题?
请求接口代码:
async getList() {...}
onLoad() {
let that = this;
that.getList();
}
下拉刷新代码:
onPullDownRefresh() {
console.log("下拉刷新")
this.onLoad();
wx.stopPullDownRefresh()
}
2 回答3.1k 阅读
2 回答1.4k 阅读
1 回答848 阅读