我收到此错误消息:
XMLHttpRequest cannot load http://site.com:8080/json/1. Origin http://site.com is not allowed by Access-Control-Allow-Origin.
我的代码:
$.get('http://site.com:8080/1/',{},function (Data) { console.log(Data); },"json");
但它是同一个领域!