当我从 Odesk 提要中获取数据时302 Moved Temporarily
出现错误,但是当我在浏览器中打开相同的 url 时,内容就在那里:我们做错了什么?
var url = "https://www.odesk.com/jobs/rss?nbs=1&g=&q=";
var x = new XMLHttpRequest();
x.onreadystatechange = function() {
alert(x.status);
if (x.readyState == 4 && x.status == 200) {
doc = x.responseXML;
}
};
x.open("GET", url, true);
x.send();