解决: 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
      })
}
posted @ 2021-08-26 10:33  胸怀丶若谷  阅读(781)  评论(0)    收藏  举报