关于 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,不存在点击执行多次的情况了
032019-01-17
相似问题