I have a page where some event listeners are attached to input boxes and select boxes.
(我有一个页面,其中一些事件侦听器附加到输入框和选择框。)
Is there a way to find out which event listeners are observing a particular DOM node and for what event?(有没有一种方法可以找出哪些事件侦听器正在观察特定的DOM节点以及针对哪个事件?)
Events are attached using:
(使用以下事件附加事件:)
- Prototype's
Event.observe
;(原型的 Event.observe
;)
- DOM's
addEventListener
;(DOM的addEventListener
;)
- As element attribute
element.onclick
.(作为元素属性element.onclick
。)
ask by Navneet translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…