看下面code: 复制代码 代码如下: TestPage <BR>$(document).ready(function() { <BR>$("#btn1").unbind('click').removeAttr('onclick').click(function() { <BR>alert('The method has invoked by Jquery.'); <BR>}); <BR>}); <BR>function foo() <BR>{ <BR>alert('The method has invoked.'); <BR>} <BR>