问题描述:

  下拉刷新在手机上不会自动回弹,开发工具可以

 

解决办法:

主动调用wx.stopPullDownRefresh

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
    console.log('onPullDownRefresh')
    // 3秒模拟数据加载
    setTimeout(function () {
      // 不加这个方法真机下拉会一直处于刷新状态,无法复位
      wx.stopPullDownRefresh()
    }, 3000)
  }

 

 

 

 

 

 

 

.

相关文章:

  • 2021-12-10
  • 2022-01-07
  • 2022-01-07
  • 2022-01-07
  • 2022-01-07
  • 2021-10-25
猜你喜欢
  • 2021-11-30
  • 2022-12-23
  • 2021-07-04
  • 2022-01-07
  • 2022-01-07
相关资源
相似解决方案