第二次click 改成false
if (!this.foodView) {
this.foodView = new BScroll(this.$refs.foodView, {
click: true
});
} else {
this.foodView.refresh();
}
if (!this.content) {
this.content = new BScroll(this.$refs.content, {
click: false
});
} else {
this.content.refresh();
}
本文详细介绍了如何在Vue项目中使用BScroll组件,并正确设置click属性。通过实例演示了在不同情况下,如何初始化BScroll并调整click参数,以实现页面元素的正确响应。
1594

被折叠的 条评论
为什么被折叠?



