怎么让数字分行显示,或者空一格显示
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>二维数组</title>
<script type="text/javascript">
var myarr=new Array();
for(var i=0;i<3;i++){
myarr[i]=new Array();
for(var j=0;j<6;j++){
myarr[i][j]=i*j;
}
}
document.write(myarr[i][j]);
</script>
</head>
<body><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>二维数组</title>
<script type="text/javascript">
var myarr=new Array();
for(var i=0;i<3;i++){
myarr[i]=new Array();
for(var j=0;j<6;j++){
myarr[i][j]=i*j;
document.write(myarr[i][j]);
}
}
</script>
</head>
<body>
</body>
</html>
</body>
</html>
输出的是0000000123450246810
我想让他显示成0 0 0 0 0 0 0 1 2 3 4 5 0 2 4 6 8 10
或者换行
要怎么弄?