vue移动端绑定click事件失效问题
原因可能是你使用了better-scroll,默认它会阻止touch事件。所以在配置中需要加上click: true
例:
mounted(){
this.scroll=new Bscroll(this.$refs.wrapper, { mouseWheel: true, click: true, tap: true })
}
vue移动端绑定click事件失效问题
原因可能是你使用了better-scroll,默认它会阻止touch事件。所以在配置中需要加上click: true
例:
mounted(){
this.scroll=new Bscroll(this.$refs.wrapper, { mouseWheel: true, click: true, tap: true })
}
本文标题:vue移动端绑定@click事件失效问题
本文链接:https://www.haomeiwen.com/subject/xmtjkqtx.html
网友评论