这些代码可能会帮助您-
$('body').click(function(){ alert('test' )}) var foo = $.data( $('body').get(0), 'events' ).click //您可以查询$.data(object,'events')并获取一个对象,然后查看附加的事件。 $.each( foo, function(i,o) { alert(i) // guid of the event alert(o) // the function definition of the event handler });