本帖最后由 net_lover 于 2013-12-22 18:19:00 编辑

解决方案 »

  1.   

    你可以这么测试
    B 页面
    <script>
    var iCustomerID ="ok"
    oWinD = showModalDialog("servicedesk/selectSettleEmployee.html",window,"center=yes;dialogWidth=560px;dialogHeight=260px;status=no;resizable=yes;help=no;scroll=no;");
    </script>
    selectSettleEmployee.html里面写
    <script>
    var parentWindow = window.dialogArguments; 
    alert(parentWindow.iCustomerID)
    </script>
      

  2.   

    B 页面
    <script>
    var iCustomerID =$("#id").val();
    function a(){
        oWinD = showModalDialog("servicedesk/selectSettleEmployee.html(c页    面)",window,"center=yes;dialogWidth=560px;dialogHeight=260px;status=no;resizable=yes;help=no;scroll=no;"); 
    }
    </script>C页面:
    <script>var parentWindow = window.dialogArguments; 
    function onLoad(){   parentWindow.iCustomerID 报错了
    }
    //俩级页面一样的代码没报错
    </script>
      

  3.   

    alert(parentWindow)这个没报错(object) alert(parentWindow.iCustomerID)报错,和三级页面有关系么?