有没有工具/技术来调试jQuery事件处理程序? [英] Are there tools / techniques to debug jQuery event handlers?

查看:120
本文介绍了有没有工具/技术来调试jQuery事件处理程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正试图弄清楚什么点击事件处理程序已附加到我的div。应该只附加一个处理程序,但似乎至少有一个。我使用FireBug,但Chrome也可以作为选项。我不喜欢IE,所以我不想使用它。



最好的情况是我可以使用FireBug检查我的div,并查看列表事件处理程序。 noreferrer> Visual Event 是一个不错的JavaScript书签,您可以在页面上运行,查看附加到控件的所有事件。


I am currently trying to figure out what click event handlers have attached to my div. There should only be one handler attached, but there appears to be at least one. I'm using FireBug but Chrome could be an option as well. I don't like IE so I'd prefer not to use that.

The best case scenario is that I can inspect my div using FireBug, and see a list of event handlers.

解决方案

Visual Event is a nice javascript bookmark you can run on a page to see all the events that are attached to a control.

这篇关于有没有工具/技术来调试jQuery事件处理程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆