ajax请求 juery

$.ajax({
type: "POST",
url: "test.ashx",
beforeSend: function(XMLHttpRequest){
$("#aaa").show();
},
data: "",
success: function(msg){
$("#div").append(msg);
},
complete: function(XMLHttpRequest, textStatus){
$("#aaa").hide();
}
});

你可能感兴趣的:(ajax请求)