用chrome查看通过jquery绑定的事件
// Bind up a couple of event handlers $("#foo").on({ click: function(){ alert("Hello") }, mouseout: function(){ alert("World") } }); // Lookup events for this particular Element $._data( $("#foo")[0], "events" );
Chrome F12-Sources-给表达式$._data( $("#foo")[0], "events" );add watch.

查看表达式的值,在handler function上右键-查看函数定义即可

javascript - Can I find events bound on an element with jQuery? - Stack Overflow
http://stackoverflow.com/questions/2008592/can-i-find-events-bound-on-an-element-with-jquery#
浙公网安备 33010602011771号