$.ajax({
url : action请求,
type : "post",
async : true,//true为异步请求,false则为同步请求
success : function(data) {
if(data.result == "json") {
alter("json");
} else {
alter("other");
}
}
});
$.getJSON(url, function(data) {
if(data != null && data != "") {
}
});
$.post(url, function(data) {
if(data != null && data != "") {
}
})
2018-05-16---ajax异步请求
猜你喜欢
转载自blog.csdn.net/zimuchanggong/article/details/89299399
今日推荐
周排行