counter
counter

给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); }; }); })();

posted @ 2015-05-08 15:28  bfy  阅读(251)  评论(0编辑  收藏  举报