Chrome Dev Tools : view all event listeners used in the page

后端 未结 2 905
悲哀的现实
悲哀的现实 2020-12-31 08:24

Is there a feature in chrome dev tools(or any extension) by which I can view all the event listeners that are used on a certain page/app.

Edit:

2条回答
  •  鱼传尺愫
    2020-12-31 08:58

    Chrome Dev-Tools don't properly show jQuery-added event-listeners.

    This library seems to cover this: https://blinkingcaret.wordpress.com/2014/01/17/quickly-finding-and-debugging-jquery-event-handlers/

    Finding event handlers registered using jQuery can be tricky. findHandlersJS makes finding them easy, all you need is the event type and a jQuery selector for the elements where the events might originate.

提交回复
热议问题