Code:
console.log(e);
console.log(e.currentTarget);
The result of is:
VM1656:1 MouseEvent{isTrusted: true, screenX: 149, screenY: 253, clientX: 149, clientY: 131,}
VM1656:2 null
obviously, the event
object is the same, but why is the console output currentTarget
null
?
look at currentTarget
in the event
object from the console, and its value is null
, so why is the currentTarget
output in the js file not null
?