uniapp中的下拉刷新 onPullDownRefresh 失效

正文开始

注意1 onPullDownRefresh 要和data,method同级

 data () {
        return {
          arr: ["前端","后端","JAVA","UI",]
        }
      },
onPullDownRefresh () {
     console.log('触发下拉刷新了'),
     this.list = ["JAVA","UI","前端","后端"]
}

2.父级使用了scroll-view包裹

3.pages.json中的路由没有指定: "enablePullDownRefresh":true,

        {
            "path": "pages/my/memberCenter/index",
            "style": {
                "navigationBarTitleText": "会员中心",
                "enablePullDownRefresh":true
            }
        },

正文结束

uni.navigateto无法跳转的原因 没有上一篇