Vue之事件相关
阻止事件冒泡:使用stop
<div @click="func2">
<div @click.stop="func($event)">
<input type="button" value="按钮1">
<input type="button" value="按钮2">
<input type="button" value="按钮3">
</div>
</div>
阻止链接跳转:使用prevent
<a href="http://www.baidu.com" @click.prevent="func3">百度</a>
使用enter触发事件:
<input type="text" @keyup.enter="func4">

浙公网安备 33010602011771号