How to debug JavaScript / jQuery event bindings with Firebug or similar tools?

前端 未结 15 1117
一个人的身影
一个人的身影 2020-11-22 06:56

I need to debug a web application that uses jQuery to do some fairly complex and messy DOM manipulation. At one point, some of the events that were bound to particular eleme

15条回答
  •  清酒与你
    2020-11-22 07:25

    According to this thread, there is no way in Firebug to view what events are attached to listeners on a DOM element.

    It looks like the best you can do is either what tj111 suggests, or you could right-click the element in the HTML viewer, and click "Log Events" so you can see which events are firing for a particular DOM element. I suppose one could do that to see what events could be firing off particular functions.

提交回复
热议问题