案例:jquery案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<script src="/js/jquery-1.11.1.min.js"></script>
5
<script>
6
$(document).ready(function(){
7
  $("button").click(function(){
8
    $("#div1").load("/example/jquery/demo_test.txt #p1");
9
  });
10
});
11
</script>
12
</head>
13
<body>
14
15
<div id="div1"><h2>使用 jQuery AJAX 来改变文本</h2></div>
16
<button>获得外部内容</button>
17
18
</body>
19
</html>
20