摘要: 在调用方法的时候加一个参数$event,在定义的方法上接收此参数 <el-button @click="get($event)" class="a"></el-button>get(e){console.log(e.currentTarget.classList);//输出a} 阅读全文
posted @ 2021-06-03 17:32 lionlilz 阅读(295) 评论(0) 推荐(0)
摘要: 已解决 阅读全文
posted @ 2020-08-15 11:23 lionlilz 阅读(42) 评论(0) 推荐(0)