event.originalEvent jQuery [英] event.originalEvent jQuery
问题描述
我刚读了 this paragraph :
同样重要的是注意事件对象包含一个属性
调用originalEvent
,它是浏览器
本身创建的事件对象。 jQuery使用一些有用的
方法和属性来包装这个本机事件对象,但在某些情况下,您需要通过event.originalEvent $ c $来访问
原始事件c>例如。这是
,特别适用于移动设备和平板电脑上的触摸事件。
最后一句话'这是特别适用于移动设备和平板电脑上的触摸事件。真的引发了我的兴趣。但是,到目前为止,这一点与学习中心进入 originalEvent
一样多。
有没有人知道好的资源特别是关于触摸事件/移动设备的 event.originalEvent
的更深入的研究/实践。
event.originalEvent
通常只是原生的 事件
(也描述这里)。
但是,如果浏览器兼容,并且事件是 触摸事件
,那么该API将通过 event.originalEvent
公开。
简单的答案是 event.originalEvent
并不总是sam e,这取决于触发处理程序的事件类型以及浏览器的环境。
I am currently immersed in the jQuery learning center. I'm going from start to end.
I just read this paragraph:
It's also important to note that the event object contains a property called
originalEvent
, which is the event object that the browser itself created. jQuery wraps this native event object with some useful methods and properties, but in some instances, you'll need to access the original event viaevent.originalEvent
for instance. This is especially useful for touch events on mobile devices and tablets.
The last sentence, 'This is especially useful for touch events on mobile devices and tablets.', really sparked my interest. but this is as much as the learning center goes into originalEvent
thus far.
Does anyone know of good resources for a more intensive study/practice for event.originalEvent
specifically in relation to touch events/mobile devices?
event.originalEvent
is usually just the native event
(also described here).
However, if the browser is compatible, and the event was a touch event
then that API will be exposed through event.originalEvent
.
The short answer is that event.originalEvent
is not always the same, it depends on which event type triggered the handler, and on the environment of the browser.
这篇关于event.originalEvent jQuery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!