为了账号安全,请及时绑定邮箱和手机立即绑定

为何事件对象的currentTarget为null

为何事件对象的currentTarget为null

div.onclick=function(){ console.log(event.currentTarget) }//这样点击后输出<div class='out'>..</div> div.onclick=function(){ console.log(event) }//这样点击后输出事件对象event,查找该对象的currentTarget属性却为null,明明上一句都可以输出dom节点。为何为null??
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 3316 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信