vue
OnClick
Compare
@click

Vue <-> Native @click <->onclick

compare

<script src="https://unpkg.com/vue"></script>
<button onclick="a()">native a</button>
<button @click="a" id="aaa">vue a</button>
let a=function a(ev){
 console.log(ev,this)
}
new Vue({
 el:'#aaa'
 ,methods:{
  a:a
 }
})