如题,???

解决方案 »

  1.   

    用JQ的AJAX
    http://www.cnblogs.com/yjmyzz/archive/2008/09/23/1296818.html
      

  2.   

    写个php来获取跨域的信息,然后再用ajax向这个php请求。
    说的不对望楼下更正
      

  3.   

    百度的跨域处理
    http://topic.csdn.net/u/20081224/09/26aff992-d0ba-4f6f-a023-e0e96ecbe1fc.html
      

  4.   

    php+js的例子:
    域名http://mydir.com
    test.php内容:
    <?php
    echo 'a';域名http://mytest.com
    index.html内容:
    <script src="jquery.js"></script>
    <script>
    $.post("index.php", {}, function(data){
    alert(data);//输出的是a
    });
    </script>index.php内容:
    <php
    ini_set('allow_url_include', 'On');
    include('http://mydir.com/test.php');
    这样轻松实现ajax跨域操作
      

  5.   

    用 img 或者 script 标签  的 src可以跨域请求
      

  6.   

    一般意义上的ajax是不能跨域的。但可以用类似ajax的方法来达到无刷新跨域的效果动态创建script的方法
    var scripts  = document.createElement("script");
    scripts.src = "xxxx.php";
    document.getElementsByTagName("head")[0].appendChild(scripts);
      

  7.   

    jquery的getJSON支持跨域url后面跟jsoncallback=?