1.阻止事件冒泡
<div @click="divClick"> this is a btn father div <button @click.stop="btnClick">this is a button in div</button> </div>
通过stop来防止
2.阻止默认行为
prevent
3.只触发一次回调
.once
标签:prevent,修饰符,stop,阻止,div,once
来源: https://www.cnblogs.com/hbsj/p/15013728.html