<input type=“text” @click=“abc($event,1)” value=“123” />
<input type=“text” @click=“abc” value=“123” />
methods: {
abc(event,n) {
console.log(event.target.value,n);
},abc(e) {
console.log(e.target.value,n);
}
}
Vue中$event的用法
最新推荐文章于 2024-05-27 21:58:40 发布