每天一点点之vue框架开发 - @click-native-prevent

 

1.在封装好的组件上使用,所以要加上.native才能click

2.prevent就相当于..event.preventDefault()

 

所以@click.native.prevent是用来阻止默认行为的 ;

 

参考链接:https://blog.csdn.net/caimaomaocai/article/details/81202390

相关文章:

  • 2022-12-23
  • 2021-04-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案