如何使用 Firebug 跟踪事件?
例如,当我检查元素时,我想知道绑定到元素的所有事件。我在哪里可以找到这些事件?
For instance when I inspect the element, I want to know all events bound to an element..Where can I find these?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我不久前问了一个相关问题 ,并得到了这个答案:
You can see the jquery expression in firebug DOM Inspector using FireQuery in firefox
https://addons.mozilla.org/en-us/firefox/addon /firequery/
它对我有用!
I asked a related question a while back, and got this answer:
You can see the jquery expression in firebug DOM inspector using FireQuery in firefox
https://addons.mozilla.org/en-us/firefox/addon/firequery/
It worked for me!
您可以在以下位置使用视觉事件书签:
http://www.sprymedia.co.uk/article/Visual+Event
它覆盖了一些代表附加到 DOM 项的每个事件的图标,您可以通过单击该图标快速检查事件的代码。
You can use the Visual Event bookmarklet at:
http://www.sprymedia.co.uk/article/Visual+Event
It overlays some icons representing each event that is attached to DOM items and you can quickly inspect the event's code by clicking on the icon.
有 Firebug 扩展 Eventbug。
在Chrome的开发者工具中,元素面板中有一个事件监听器选项卡,其中列出了附加到元素的所有监听器。
There's Firebug extension Eventbug.
In Chrome's Developer Tools there is Event Listeners tab in the Elements panel, which lists all listeners attached to an element.
下载 fireQuery.它是一个 firebug 插件,可以显示绑定到元素的任何事件以及可能分配给该元素的任何 .data
Download fireQuery. Its a firebug addon that shows you any event that is bound to an element as well as any .data that maybe assigned to that element
尝试 http://getfirebug.com/wiki/index.php/Firebug_Extensions#Eventbug
try http://getfirebug.com/wiki/index.php/Firebug_Extensions#Eventbug