ajax請求 juery

weixin_30488085發表於2020-04-06

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

轉載於:https://www.cnblogs.com/fang-beny/archive/2012/03/18/2404395.html

相關文章