Vue中$event的用法

<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);
}
}

上一篇:DTO学习系列之AutoMapper(一)


下一篇:服务端推送技术