Chrome Dev Tools: Tells me which type of event is bound to an element, but which file?

In Chrome, when I right-click on a DOM element to see which event listeners are connected, it always says jquery.min.js: 2. However, I would like to know which of my JavaScript files this listener contains (for example, a listener click events).

For example, which file has this code?

$('#clickMe').on('click', function(e){ //clicked});

enter image description here

+5
source share
2 answers

Chrome does not know about this.

When you write $(...).click(function), the event handler that is added to the function is always in jQuery.
Chrome cannot know which callback the jQuery event handler will ultimately fire.

0

addEventListener ( $(...). click()), Chrome Dev Tools , .

0

All Articles