In the jQuery manual, about the bind()
function, it is said that there are some "native DOM events" (with 2 examples).
在jQuery手册中,关于bind()函数,据说有一些“本机DOM事件”(有2个例子)。
Where can I find the complete list documented?
我在哪里可以找到完整的清单记录?
For example, I am implementing an onShow
event. How can I find out if such an event already exists?
例如,我正在实现一个onShow事件。我怎样才能知道这样的事件是否已经存在?
1 个解决方案
#1
1
For the current standard. See: http://www.w3.org/TR/DOM-Level-2-Events/events.html (scroll down a ways). For DOM Level 3 (still in working draft, but may be implemented in some browsers), see: http://www.w3.org/TR/DOM-Level-3-Events/
对于现行标准。请参阅:http://www.w3.org/TR/DOM-Level-2-Events/events.html(向下滚动)。对于DOM Level 3(仍在工作草案中,但可能在某些浏览器中实现),请参阅:http://www.w3.org/TR/DOM-Level-3-Events/
If you're solely worried about stepping on the toes of default events, go with the DOM Level 3 working draft. It includes everything currently in DOM Level 2, and additional ones that may eventually make it to spec.
如果您只是担心踩到默认事件的脚趾,请使用DOM Level 3工作草案。它包括目前在DOM Level 2中的所有内容,以及最终可能符合规范的其他内容。
#1
1
For the current standard. See: http://www.w3.org/TR/DOM-Level-2-Events/events.html (scroll down a ways). For DOM Level 3 (still in working draft, but may be implemented in some browsers), see: http://www.w3.org/TR/DOM-Level-3-Events/
对于现行标准。请参阅:http://www.w3.org/TR/DOM-Level-2-Events/events.html(向下滚动)。对于DOM Level 3(仍在工作草案中,但可能在某些浏览器中实现),请参阅:http://www.w3.org/TR/DOM-Level-3-Events/
If you're solely worried about stepping on the toes of default events, go with the DOM Level 3 working draft. It includes everything currently in DOM Level 2, and additional ones that may eventually make it to spec.
如果您只是担心踩到默认事件的脚趾,请使用DOM Level 3工作草案。它包括目前在DOM Level 2中的所有内容,以及最终可能符合规范的其他内容。