When you set the domain property, use the domain name determined by the server rather than by the client browser.

解决方案 »

  1.   

    that specifies or receives the domain suffix取消设置,那你就设回来呗,估计是不能设为空。
      

  2.   

    怎么设回来啊
    我是这么设的
    document.domain="ab.com.cn"
    设回来怎么设啊
      

  3.   

    试试这个:
    document.domain = top.location.hostname;
      

  4.   

    但是domain是属性啊...
    怎么取值
      

  5.   

    我倒~~~~~!!
    举例:
    window.domain_save = document.domain;//最好这不就保存起来了?恢复:
    document.domain = window.domain_save;