我在處理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 回答

收到一只叮咚
TA貢獻(xiàn)1821條經(jīng)驗 獲得超5個贊
我應(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)注
- 560 瀏覽
添加回答
舉報
0/150
提交
取消