关于 better-scroll click执行两次的问题。

来源:17-17 cartcontrol组件(3)

qq_缺南摸了个北_0

2019-01-16

执行环境:
chrome浏览器,版本 71.0.3578.98 (正式版本) (64 位)
better-scroll 版本 v0.1.7

初始化 better-scroll 代码

this.foodScroll = new BScroll(this.$refs.foodscroll, {
        // 让 better-scroll 滚动时,实时派发 onchange 事件
        probeType: 3,
        click: true
        // tap: true
      })

图片描述

_constructed 全是true,所以使用 !e._constructed 就全不执行了。

写回答

1回答

ustbhuangyi

2019-01-16

建议升级到最新版本的 better-scroll,不存在点击执行多次的情况了

0
3
qq_缺南摸了个北_0
回复
ustbhuangyi
关于嵌套问题,我在另外一个提问里写了。
2019-01-17
共3条回复

Vue.js2.5+cube-ui重构饿了么App(经典再升级)

掌握Vue1.0到2.0再到2.5最全版本应用与迭代,打造极致流畅的WebApp

9868 学习 · 4162 问题

查看课程