【发布时间】:2012-06-28 18:02:12
【问题描述】:
所以我试图通过 jQuery get 从标头响应中获取位置。我尝试使用 getResponseHeader('Location') 和 getAllResponseHeaders() 但它们似乎都返回 null。
这是我当前的代码
$(document).ready(function(){
var geturl;
geturl = $.ajax({
type: "GET",
url: 'http://searchlight.cluen.com/E5/Login.aspx?URLKey=uzr7ncj8)',
});
var locationResponse = geturl.getResponseHeader('Location');
console.log(locationResponse);
});
【问题讨论】:
标签: javascript jquery ajax response