怎么才能得到ajax返回值 运用到其他js方法当中

如题所述

$.ajax({
url:'test.php',
type:'post',
data:{},
success:function(res){
console.log(res);//返回值res
},
error:function(data,status,errorThrown){
console.log(errorThrown);
}
});
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答