vue中用v-for遍历出的li中的@click事件在移动端无效

使用的better-scroll默认会阻止touch事件。所以在配置中需要加上click: true

 this.menuScroll = new BScroll(this.$refs.menuScroll, {
        probeType: 3, //在屏幕滑动和滚动动画中都会触发scroll事件,
        click: true
      });

 

posted on 2020-02-08 11:27  eeaeo  阅读(1337)  评论(0编辑  收藏  举报

导航