$.get("account/test.php", function(data){}); 这样就没问题
在浏览器里直接http://www..xxx.com/account/test.php 输入,也没问题
$.get("http://www..xxx.com/account/test.php", function(data){}); 这样就没反应
貌似get方法没办法传 http://www.xxx.com/account/test.php 这种url??
$.get("account/test.php", function(data){}); 这样就没问题
在浏览器里直接http://www..xxx.com/account/test.php 输入,也没问题
$.get("http://www..xxx.com/account/test.php", function(data){}); 这样就没反应
貌似get方法没办法传 http://www.xxx.com/account/test.php 这种url??
ajax不能跨域,xxx.com和你页面不同源吧(就是域名和端口都不一致)。。如果xxx.com支持jsonp操作就可以获取到数据,可以用
$.get("http://www..xxx.com/account/test.php?callback=?", function(data){});
启用jsonp操作