为什么不先声明一维也可以
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>二维数组</title>
<script type="text/javascript">
//var myarray=new Array();
//var i,j;
for(i=0;i<3;i++){
myarray[i]=new Array();
for(j=0;j<6;j++){
myarray[i][j]=i*j;
}
}
document.write(myarray);
</script>
</head>
<body>
</body>
</html>