我在處理ajax請求時(shí)遇到麻煩。我遇到了錯誤No 'Access-Control-Allow-Origin' header is present on the requested resource.所以我嘗試的是這個(gè)jQuery ajax請求:var request = $.ajax({ type: 'GET', url: url, dataType: "json", xhrFields: { withCredentials: true }});request.done(function(data){ console.log(data);}); 但是它仍然無法正常工作。我仍然遇到錯誤。我該如何解決?
2 回答

DIEA
TA貢獻(xiàn)1820條經(jīng)驗(yàn) 獲得超2個(gè)贊
我應(yīng)該把它弄出來{"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 關(guān)注
- 488 瀏覽
添加回答
舉報(bào)
0/150
提交
取消