<!DOCTYPE html>
<html>
<head>
<script src="/js/jquery.js">
</script>
<script>
$(document).ready(function(){
$("button").click(function(){
$.post("/example/html/form_action.aspx",
{
name:"Donald Duck",
city:"Duckburg"
},
function(data,status){
alert("数据:" + data + "\n状态:" + status);
});
</head>
<body>
<button>向页面发送 HTTP POST 请求,并获得返回的结果</button>
</body>
</html>