给js注入debugger
转载http://www.aaron-powell.com/posts/2014-03-06-debugging-jquery-events.html
(function () { var element = $('.selector')[0] var clicks = $._data(element).events.click; clicks.forEach(function (click) { var handler = click.handler; click.handler = function () { debugger; handler.apply(this, arguments); }; }); })();