avatar

Catalog
Vue.js阻止click事件穿透

将 @click=”fn” 改为 @click.stop=”fn” 即可

Author: Qin
Link: https://qinhaolei.com/posts/201906063126/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Reward
  • WechatPay
    WechatPay
  • AliPay
    AliPay
  • Bitcoin
    Bitcoin

Comment