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