<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script language="javascript" type="text/javascript">
<!--
var arr=[[2,5,8,0,1],[9,2,4,3,6],[-2,3,9,1,1],[2,7,7,7,8]];
var arr2=[];
for (i= 0;i<arr[0].length ;i++ )
{
arr2[i]=[];
}
for ( i=0;i<arr.length ;i++ )
{
for ( j=0 ;j<arr[0].length ;j++ )
{
arr2[j][i] = arr[i][j];
}
}
for ( i = 0 ; i< arr2.length ; i++ )
{
for (j = 0; j< arr2[0].length;j++ )
{
document.writeln(arr2[i][j]+" ");
}
document.writeln("<br/>")
}
//-->
</script>
</head>
<body>
</body>
</html>
前
2 5 8 0 1
9 2 4 3 6
-2 3 9 1 1
2 7 7 7 8
后
2 9 -2 2
5 2 3 7
8 4 9 7
0 3 1 7
1 6 1 8
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script language="javascript" type="text/javascript">
<!--
var arr=[[2,5,8,0,1],[9,2,4,3,6],[-2,3,9,1,1],[2,7,7,7,8]];
var arr2=[];
for (i= 0;i<arr[0].length ;i++ )
{
arr2[i]=[];
}
for ( i=0;i<arr.length ;i++ )
{
for ( j=0 ;j<arr[0].length ;j++ )
{
arr2[j][i] = arr[i][j];
}
}
for ( i = 0 ; i< arr2.length ; i++ )
{
for (j = 0; j< arr2[0].length;j++ )
{
document.writeln(arr2[i][j]+" ");
}
document.writeln("<br/>")
}
//-->
</script>
</head>
<body>
</body>
</html>
前
2 5 8 0 1
9 2 4 3 6
-2 3 9 1 1
2 7 7 7 8
后
2 9 -2 2
5 2 3 7
8 4 9 7
0 3 1 7
1 6 1 8