onPullDownRefresh() {
            uni.request({
                url:''
                success: (res) => {
                    uni.stopPullDownRefresh()
                }
            })
        },

在做小程序的时候经常遇上下拉刷新的需求,但是这里有个小坑,如果不使用uni.stopPullDownRefresh(),刷新就不会自动停止,所以一定要在业务代码结束后使用uni.stopPullDownRefresh()(或者是在回调中,比如我的例子就是在网络请求的回调中使用)

相关文章:

  • 2022-01-07
  • 2022-12-23
  • 2021-06-06
  • 2021-07-01
  • 2021-12-29
  • 2022-01-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2021-05-24
  • 2023-03-17
  • 2021-09-18
  • 2022-01-07
相关资源
相似解决方案