概述
Event Object
-
event.currentTarget
The current DOM element within the event bubbling phase.
-
event.data
An optional data map passed to an event method when the current executing handler is bound.
-
event.delegateTarget
The element where the currently-called jQuery event handler was attached.
-
event.isDefaultPrevented()
Returns whether event.preventDefault() was ever called on this event object.
-
event.isImmediatePropagationStopped()
Returns whether event.stopImmediatePropagation() was ever called on this event object.
-
event.isPropagationStopped()
Returns whether event.stopPropagation() was ever called on this event object.
-
event.namespace
The namespace specified when the event was triggered.
-
event.pageX
The mouse position relative to the left edge of the document.
-
event.pageY
The mouse position relative to the top edge of the document.
-
event.preventDefault()
If this method is called, the default action of the event will not be triggered.
-
event.relatedTarget
The other DOM element involved in the event, if any.
-
event.result
The last value returned by an event handler that was triggered by this event, unless the value was
undefined
. -
event.stopImmediatePropagation()
Prevents other event handlers from being called.
-
event.stopPropagation()
Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event.
-
event.target
The DOM element that initiated the event.
-
event.timeStamp
The difference in milliseconds between the time the browser created the event and January 1, 1970.
-
event.type
Describes the nature of the event.
-
event.which
For key or mouse events, this property indicates the specific key or button that was pressed.
最后
以上就是等待红牛为你收集整理的jquery中event object Event Object的全部内容,希望文章能够帮你解决jquery中event object Event Object所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复