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

前端 未结 15 1464
一个人的身影
一个人的身影 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条回答
  •  猫巷女王i
    2020-11-22 07:32

    Use $._data(htmlElement, "events") in jquery 1.7+;

    ex:

    $._data(document, "events") or $._data($('.class_name').get(0), "events")

提交回复
热议问题