$(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

相关文章:

  • 2021-11-22
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
  • 2021-11-22
猜你喜欢
  • 2022-12-23
  • 2021-11-22
  • 2022-03-08
  • 2022-12-23
  • 2021-11-22
  • 2021-11-22
  • 2021-12-16
相关资源
相似解决方案