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

前端 未结 15 1116
一个人的身影
一个人的身影 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:40

    jQuery stores events in the following:

    $("a#somefoo").data("events")
    

    Doing a console.log($("a#somefoo").data("events")) should list the events attached to that element.

提交回复
热议问题