document.write(my[i][j]+"<br>");
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>二维数组</title>
<script type="text/javascript">
var my=new Array();
for(var i=0;i<3;i++){
my[i]=new Array();
for(var j=0;j<6;j++){
my[i][j]=i*j;
document.write(my[i][j]+"<br>");
}
}
</script>
</head>
<body>
</body>
</html>
为什么document.write在for循环外面就没办法获取到内容?