笨办法,把数组变成字符串,然后在解析.如200,test,hwhw^300,test,hehe

解决方案 »

  1.   

    <BODY BGCOLOR="#FFFFFF">
    <input type="button" name="b1" value="test" onclick="test();">
    </BODY>
    <script>
    function test(){ 
     var arrSource = new Array();
     arrSource[0] = new Array();
     arrSource[0][0] = 'abc'; arrSource[0][1] = 'def';
    var arr = showModalDialog("test.html", arrSource, "dialogWidth:25.5em; dialogHeight:15.5em; status:0");
    }
    </script>
    下面是test.html
    <BODY BGCOLOR="#FFFFFF">
    第一个:<input type="text" name="t1"><br>
    第二个:<input type="text" name="t2">
    </BODY>
    <script language="javascript">
    arr=window.dialogArguments ;
    document.all["t1"].value = arr[0][0] ;
    document.all["t2"].value = arr[0][1] ;</script>
      

  2.   

    利用window.open(),就可以了window.opener.ArrayName[][]var s = window.open();s.ArrayName[][];或者利用frame