2

在 safari(和 chrome 的)元素检查器中,有一个“事件侦听器”部分(在元素选项卡的右框架中)显示文档中的事件侦听器。萤火虫中有类似的东西吗?此外,是否可以使用 javascript 获取元素的事件侦听器(例如elmnt.onclick,但也应该适用于添加的事件addEventListener())?

4

1 回答 1

2

This is available for firebug:

http://getfirebug.com/wiki/index.php/Firebug_Extensions#Eventbug

For your second question, is it possible to get the events added via addEventListener in javascript? Generally it is not. That add-on uses eventlistenerservice you would need elevated privileges, a signed script and it would still only work in Firefox.

于 2011-01-12T19:13:06.847 回答