jQueryでElementにbindされた関数を一覧表示する
![イメージ](http://lh4.ggpht.com/-CnK_ehvPXjM/T_EQmU5pNSI/AAAAAAAAUds/Rb_6x_Axh2A/jquery_function_list%25255B4%25255D.jpg?imgmax=800)
WordPressのPluginをDebugしているときのMemo. Submitするときに、どんなJavaScript関数が実行されるのか調べる方法。 下記Siteの情報が参考に。 javascript - List all bindings of an elment (with jQuery) - Stack Overflow 次のような関数を実行するとConsoleに表示してくれる。 $.each($('form').data('events'), function(i, e) { console.log(i, e); console.log(e[0].handler); }); ちなみに何もbindされていないとErrorになるので注意。 < Related Posts > [Wordpress]適用されるfilterとactionを表示する JavaScriptをconsole.logでDebugする