问题
As some old versions of IE didn't provide the event as argument to event listeners, we got used to (event||window.event)
.
In order to decide whether it can still make some sense to have this in a modern library, I tried to look at what versions were concerned but I couldn't find this information.
So, what's the most recent version of IE that didn't provide the event as argument ?
回答1:
Internet Explorer provides a global object window.event, which references the last event. And before IE9 there are no arguments in the handler.
Get from
来源:https://stackoverflow.com/questions/22552338/what-version-of-ie-doesnt-pass-the-event-as-argument-to-listeners