iphone下拉刷新
发布于 5 年前 作者 cqian 17860 次浏览 来自 问答

 async onPullDownRefresh(){

      await this.getCount();

      wx.stopPullDownRefresh()

    }

getCount是异步请求,当加上这行代码时,iphone会出现页面不回弹,去掉这行代码就正常

5 回复

mmp,我还以为我自己评论的

小程序已经支持async  语法糖了?

wx.stopPullDownRefresh() 套个settimeout试试。刚在一个帖子看到的,试了可行

mmp,这尼玛猿粪啊~

我 还以为是我发的????

回到顶部