查看浏览器的JavaScript事件
问题描述:
我在使用Firefox。有什么在那里,会告诉我的一切,是实时得到触发JavaScript事件?
I'm using Firefox. Is there something out there that will show me all the JavaScript events that are getting triggered in real time?
答
您可以在萤火虫的HTML标签右键单击元素,然后单击日志事件。
You can right-click an element in Firebug's HTML tab and click Log Events.
您将看到,然后通过在控制台选项卡中该元素收到每一个事件。结果
你甚至可以点击其中的一个探索事件
对象的属性。
You will then see every event received by that element in the Console tab.
You can even click one of them to explore the properties of the event
object.