用 post 方式提交异步请求。
当前使用的 xmlhttp 对象。
提交异步请求,并返回 xmlhttp 对象,请求成功则执行 onComplete,失败则执行 onError 。
$.Ajax.post 是 $.Ajax.Request 方法的快捷调用方法 。
<script type="text/javascript" >
var xmlHandle = $.Ajax.post("http://localhost/bbs/login.asp","username=abc&password=123456",function(x){if(x.responseText=="true"){alert("登录成功!");}else{alert("登录失败!");}});
</script>