You can get this information from the data cache.(您可以从数据缓存中获取此信息。)
For example, log them to the console (firebug, ie8):(例如,将它们记录到控制台(firebug,ie8):)
console.dir( $('#someElementId').data('events') );
or iterate them:(或者迭代它们:)
jQuery.each($('#someElementId').data('events'), function(i, event){
jQuery.each(event, function(i, handler){
console.log( handler.toString() );
});
});
Another way is you can use the following bookmarklet but obviously this does not help at runtime.(另一种方法是你可以使用下面的书签,但显然这在运行时没有帮助。) 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…