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
 }
})
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.