看下面code: 
代码如下:
 head 
meta content="text/html; charset=utf-8" http-equiv="Content-Type" / 
titleTestPage/title 
script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"/script 
script type="text/javascript" 
$(document).ready(function() { 
$("#btn1").unbind('click').removeAttr('onclick').click(function() { 
alert('The method has invoked by Jquery.'); 
}); 
}); 
function foo() 
{ 
alert('The method has invoked.'); 
} 
/script 
/head 
body 
inp...
[ 查看全文 ]