文档里面读到
<!-- 添加事件侦听器时使用 capture 模式 -->
<div v-on:click.capture="doThis">...</div>
不明白这capture 模式到底是啥模式?
文档里面读到
<!-- 添加事件侦听器时使用 capture 模式 -->
<div v-on:click.capture="doThis">...</div>
不明白这capture 模式到底是啥模式?
11 回答1.2k 阅读
4 回答555 阅读✓ 已解决
3 回答853 阅读
1 回答850 阅读✓ 已解决
1 回答1.1k 阅读
2 回答768 阅读
2 回答611 阅读
事件的捕获模式