首页 > Web开发 > 详细

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

时间:2021-08-26 11:36:01      阅读:83      评论:0      收藏:0      [点我收藏+]

改为这样,把所有值设为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
      })
}

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

原文:https://www.cnblogs.com/leoych/p/15188389.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!