聘我网

新概念招聘3.0

jQuery如何获取返回结果的header信息?

vote up0vote downstar

是否可以获取?

 

1 个答复

vote up0vote downcheck
$.ajax({
  // ...
  complete: function(xhr, status) {
    if (xhr.getResponseHeader("xxx")) {
      // ...
    }
  }
});
链接

您的回答





不是您要找的问题? 浏览其他含有标签 的问题或者 自己问个.