$.ajax({
url:'test.php',
type:'post',
data:{},
success:function(res){
console.log(res);//返回值res
},
error:function(data,status,errorThrown){
console.log(errorThrown);
}
});