vue v-on获取点击元素

1
<div v-on:tap="getevent($event)">Hello</div>

vm中

1
2
3
4
5
6
methods:{
getevent: function(thisvmObject){
thisObject = thisvmObject.currentTarget;
console.log(thisObject.innerHTML);
}
}

output>>

Hello