通过如上方式想加载别的域的页面,结果报如下错误,也就是XMLHttpRequest cannot load ''. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' ' is therefore not allowed access. 的错
请问该怎么办啊?网上搜了说getJSON能解决跨域问题来着
...全文
28810打赏收藏
jquery跨域加载页面的问题
$.getJSON("http://www.baidu.com", function(json){ $('#other').html(html) }); 通过如上方式想加载别的域的页面,结果报如下错误,也就是XMLHttpRequest cannot load ''. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' ' is therefore not allowed a