解决: better-scroll.esm.js?f40f:180 [BScroll warn]: EventEmitter has used unknown event type: "pullingUp"


改为这样,把所有值设为true

mounted() {
      // 滚动条
      this.scroll = new BScroll(this.$refs.wrapper, {
          click: true,
          observeDOM: true,
          observeImage: true,
          // 监听
          probeType: this.probeType,
          // 上拉加载更多
          pullUpLoad: this.pullUpLoad
      })
}

上面的代码是封装过的,直接一点的如下所示:

mounted() {
      // 滚动条
      this.scroll = new BScroll(this.$refs.wrapper, {
          click: true,
          observeDOM: true,
          observeImage: true,
          // 监听
          probeType: 3,
          // 上拉加载更多
          pullUpLoad: true
      })
}


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM