代码如下:
<!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>发送post数据并获取返回结果</button>
</body>
</html>