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