案例:jQuery案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<script src="/js/jquery.js"></script>
5
<script>
6
$(document).ready(function(){
7
  $("button").click(function(){
8
    $.get("/example/jq/demo_ajax_load.html",function(data,status){
9
      alert("数据:" + data + "\n状态:" + status);
10
    });
11
  });
12
});
13
</script>
14
</head>
15
<body>
16
17
<button>向页面发送 HTTP GET 请求,然后获得返回的结果</button>
18
19
</body>
20
</html>