什么版本的IE不将事件作为参数传递给监听器? [英] What version of IE doesn't pass the event as argument to listeners?
本文介绍了什么版本的IE不将事件作为参数传递给监听器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
(event || window.event)
。 为了决定在现代图书馆中是否有意义,我尝试看看有哪些版本,但找不到这些信息。 / p>
那么,IE的最新版本是什么,没有提供事件作为参数?
解决方案
Internet Explorer提供了一个全局对象window.event,其中
引用了最后一个事件。在IE9之前,
中没有参数处理程序。
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 ?
解决方案
Internet Explorer provides a global object window.event, which references the last event. And before IE9 there are no arguments in the handler.
这篇关于什么版本的IE不将事件作为参数传递给监听器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文