我在处理ajax请求时遇到麻烦。我遇到了错误No 'Access-Control-Allow-Origin' header is present on the requested resource.所以我尝试的是这个jQuery ajax请求:var request = $.ajax({ type: 'GET', url: url, dataType: "json", xhrFields: { withCredentials: true }});request.done(function(data){ console.log(data);}); 但是它仍然无法正常工作。我仍然遇到错误。我该如何解决?
2 回答
DIEA
TA贡献1820条经验 获得超2个赞
我应该把它弄出来{"ticker":{"high":0.00061,"low":0.00045,"avg":0.00053,"vol":2284.80958,"vol_cur":4421342.40061,"last":0.00051,"buy":0.00052,"sell":0.00051,"updated":1386427668,"server_time":1386427668}}
- 2 回答
- 0 关注
- 455 浏览
添加回答
举报
0/150
提交
取消