同时传入事件对象和自定义参数
html:
<div id="app"> // 方式一 <button @click="click1(1,$event)">aaaa</button> // 方式二 <button @click="click2($event, 11)">ddddd</button> </div>
js:
new Vue({ el: '#app', methods: { click1: function(value, event){ console.log(value) console.log(event); }, click2: function(event, value){ console.log(value) console.log(event); }, } })