ie8和ie8核心的浏览器不支持,其他浏览器可以。,望各位大虾帮帮忙!
代码是这样的:function clusterSend()
{    
    var phone = $("#phone").html();          
    var CustomerName=$("#CustomerName").html();
    var DisaccountNum=$("#DisaccountNum").html();
    
    var arr = new Array;  
            arr[0] = $("#CustomerName").html();
            arr[1] = "您好!您的优惠券编码是";
            arr[2] = $("#DisaccountNum").html();
            arr[3] = ",凭此编码购买可享受相应优惠;) 详情请登陆 www.phnix.cn芬尼电器";  
    var content = arr.join("");
    
  jQuery.ajax({
           type: "get",
           url: " http://GATEWAY.IEMS.NET.CN/GsmsHttp?from=4006699898&to="+phone+"&content="+content+"",
           
           success: function(msg)
           {
           alert('申请成功,折扣券稍后会发到您手机!');
            window.location.href=" http://www.phnix.cn/index.html";
            }           
           //complete:function(){location.href ="index.html"}
           });
        }

解决方案 »

  1.   

    跨域可以用 script 标签function include(src,encoding,fun) 

        var s = document.createElement('script');   
        s.type='text/javascript';
        s.charset=encoding; //'gb2312';
        s.src = src;   
        var tags =document.getElementsByTagName('head');   
       if(typeof(fun)=='function'){
            if( document.all ){
               s.onreadystatechange = function(){
                    if(/(complete|loaded)/.test(this.readyState)){
                          fun(); s.onreadystatechange = null; s.parentNode.removeChild(s); 
                     }};
           }else{
                 s.onload = function(){  fun(); s.onload = null; s.parentNode.removeChild(s); };
           }
        } 
        tags[0].appendChild(s); 
    };
      

  2.   

    老胡,能不能说仔细点啊,script标签搞跨域没弄过啊。页面代码该是怎么样的?还有跨域地址写在那,还有我的那些提交数据字段定义后,怎么传递?
      

  3.   

    function include(src,encoding,fun)  不是有3个参数吗访问的url   请求的服务器编码,回调函数include(" http://GATEWAY.IEMS.NET.CN/GsmsHttp?from=4006699898&to="+phone+"&content="+content,"gb2312",function(){alert("成功!");});
      

  4.   


    这个方法应该可行,其中的方法跟图片加载有点类似,loaded,complete(ie),load(非IE)