案例:jQuery案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<head>
3
<script type="text/javascript" src="/js/jquery.js"></script>
4
<script type="text/javascript">
5
$(document).ready(function(){
6
  $("div").ajaxStop(function(){
7
    alert("所有 AJAX 请求已完成");
8
  });
9
  $("button").click(function(){
10
    $("div").load("/example/jq/test1.txt");
11
    $("div").load("/example/jq/demo_ajax_load.html");
12
  });
13
});
14
</script>
15
</head>
16
17
<body>
18
19
<div id="txt"><h2>通过 AJAX 改变文本</h2></div>
20
<button>改变内容</button>
21
22
</body>
23
</html>