摘要: 问题:vue中使用v-on绑定事件中,获取$event.currentTarget,日志打印为null 结果为: 问题说明: e.currentTarget是一个瞬时的值,当打印event后,等到展开log信息时,冒泡事件已经结束,所以当前currentTarget是null 解决方法: conso 阅读全文
posted @ 2019-07-09 16:43 Lily~~ 阅读(2374) 评论(0) 推荐(0) 编辑