mpvue 小程序下拉刷新 三个点那种

版权声明:转载请评论留言 https://blog.csdn.net/solocao/article/details/86628628

mpvue中,onPullDownRefresh直接能用
1、首先要保证配置

  {
    path: 'pages/user',
    config: {
      navigationBarTitleText: '个人中心',
      navigationBarBackgroundColor: theme['@primary-color'],
      enablePullDownRefresh: true

    }
  }

2、和methods同层级写

 onPullDownRefresh() {
    wx.showNavigationBarLoading()
    console.log('pull')
    wx.stopPullDownRefresh()
}

猜你喜欢

转载自blog.csdn.net/solocao/article/details/86628628