日期:2014-05-16 浏览次数:20610 次
<html xmlns="http://www.w3.org/1999/xhtml" > <head > <meta http-equiv="Content-Type" content="text/html; charset=GBK"/> <script type="text/javascript" src="./jquery-1.4.4.js"></script> <script> $(document).ready(function(){ $("button").click(function(){ $.get('http://www.baidu.com' ,function(response,status,xhr) { alert(response); alert(status); alert(xhr); }); }); }); </script> </head> <body> aaa <div><h2>通过 AJAX 来改变这段文本</h2></div> <button>改变内容</button> </body> </html>