阅读背景:

使用JSONP从另一个服务器获取JSON数据

来源:互联网 

I'm trying to collect JSON data from a website hosted by a company. I am not on the same domain, so I can't just access it. From the headers, it seems that they don't use CORS either. So I've tried to use JSONP to parse the data, but it doesn't seem to work. I've tried doing $.getJSON and $.ajax, but those throw errors and don't call the function. This is my solution thus far, and in the response from the server, it still doesn't wrap the data in getResults.I'm trying to collect JSON data from a website




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: