87,910
社区成员
发帖
与我相关
我的任务
分享
$.ajax({
url: "/echo/xml/",
type: "POST",
data: {
//Set an empty response to see the error
xml: "<response></response>"
},
dataType:"text xml",
success: function(xml, textStatus, xhr) {
console.log(arguments);
console.log(xhr.status);
},
complete: function(xhr, textStatus) {
console.log(xhr.status);
}
});