第二个脚本是:"<script> document.location.href='"+checkedSite.CompanyLoginURl+"?backUrl="+this.backUrl+"';</script>"区别在window和document

解决方案 »

  1.   

    <script>   window.location.href='"+checkedSite.PersonalLoginURL.substring(0,checkedSite.PersonalLoginURL.length-1) +"?backUrl="+this.backUrl+"'; </script> 
      

  2.   

    检查你checkedSite.PersonalLoginURL的返回值返回的最后一个字符就是/
      

  3.   

    checkedSite.PersonalLoginURL 里最后没有/的.应该是javascript自动给加上了.
      

  4.   

    是不是又多了个顶级域名?www.personalchengdulogin.com.htm  ???
      

  5.   

    呵呵,showbo ,原来是我的测试地址格式不正确啊.谢谢哦
      

  6.   

    你访问顶级域名的话浏览器会自动添加最后一个/的,然后访问默认的页面.就是你要是访问http://topic.csdn.net/u
    http://topic.csdn.net
    的都会自动加/
    假如你访问的是http://topic.csdn.net/index.aspx那他就不会http://topic.csdn.net/u/20080110/19/7cb462f1-cac6-4c28-848e-0a879f4fd642.html
    结贴方法