------解决方案-------------------- <html> <body> <script language="javascript"> var a = [[5, 4, 5, 4, 5, 5, 1], ['fd', 45, 3.6, 7, 22, 56, 7], [4, 2, 5, 'gshshgjh', 45, 525, 2]]; var b = [];
for (var i = 0; i < a.length; i++) { b[i] = []; for (var j = 0; j < a[i].length; j++) { b[i][j] = a[i][j]; } } for (var i = 0; i < a.length; i++) { for (var j = 0; j < a[i].length; j++) { document.writeln(b[i][j]); } document.writeln("<br/>"); }
</script> </body>
</html>
------解决方案-------------------- <html> <body> <script language="javascript"> var a=[[5,4,5,4,5,5,1],['fd',45,3.6,7,22,56,7],[4,2,5,'gshshgjh',45,525,2]]; var b=[];