$(document).ready(function() { $.ajax({ url : "/AjaxAction/LoginArea.ashx", data : {username:user,password:pwd}, type : "POST", //dataType:"json", beforeSend: function(XMLHttpRequest){alert("开始请求")}, //加载过程 success : function(data){alert(data);}, complete: function(XMLHttpRequest, textStatus){alert("加载结束")},//HideLoading()加载完成; error:function(){alert("error occured!!!");} //请求出错处理 }); });
本文转载自:http://www.cnblogs.com/xiaohei609/archive/2012/07/16/2593632.html
时间: 2024-10-08 10:29:09