事件对象:
methods:{ show:function(ev){ alert(ev.clientX); alert(ev.clientY); } }
<input type="button" name="" value="按钮" @click="show($event)">
冒泡:
<input type="button" name="" value="按钮" @click.stop="show()">
默认行为:
<div class="show2"> <input type="button" name="" value="按钮" @contextmenu.prevent="show()"> </div>
methods: {
show: function () {
alert(111)
}
}