看到这个@click.native.prevent有点懵逼,
然后查了点资料,还是零零散散的资料。。自己总结一下
1.在封装好的组件上使用,所以要加上.native才能click
2.prevent就相当于…event.preventDefault()
所以@submit.native.prevent是用来阻止默认行为的 ;
看到这个@click.native.prevent有点懵逼,
然后查了点资料,还是零零散散的资料。。自己总结一下
1.在封装好的组件上使用,所以要加上.native才能click
2.prevent就相当于…event.preventDefault()
所以@submit.native.prevent是用来阻止默认行为的 ;