https://blog.csdn.net/gao_xu_520/article/details/80363260
父元素触发(不包括子元素)
<a @click.stop.self.prevent="say" href="http://www.baidu.com" style="border: 10px s
olid red">
<span>2</span>
<span>1</span>
</a>
https://blog.csdn.net/gao_xu_520/article/details/80363260
<a @click.stop.self.prevent="say" href="http://www.baidu.com" style="border: 10px s
olid red">
<span>2</span>
<span>1</span>
</a>
本文标题:vue事件修饰符(阻止冒泡 默认行为)
本文链接:https://www.haomeiwen.com/subject/tefogqtx.html
网友评论