<!DOCTYPE html>
<html>
<head>
<script src="js/jquery.min.js">
</script>
<script>
$(document).ready(function(){
$("button").click(function(){
$.post("demo_test_post.asp",
{
name:"Donald Duck",
city:"Duckburg"
},
function(data,status){
alert("Data: " + data + " Status: " + status);
});
});
});
</script>
</head>
<body>
<button>發(fā)送POST數(shù)據(jù)并獲取返回結(jié)果</button>
</body>
</html>
更多信息請查看IT技術(shù)專欄