vue移动端绑定click事件失效问题
原因可能是你使用了better-scroll,默认它会阻止touch事件。所以在配置中需要加上click: true例:mounted(){this.scroll=new Bscroll(this.$refs.wrapper, { mouseWheel: true, click: true, tap: true })}...
·
原因可能是你使用了better-scroll,默认它会阻止touch事件。所以在配置中需要加上click: true
例:
mounted(){
this.scroll=new Bscroll(this.$refs.wrapper, { mouseWheel: true, click: true, tap: true })
}
更多推荐
已为社区贡献1条内容
所有评论(0)