数组问题—这样换行不显示??
var myarr=new Array(3);//先声明一维数组
document.write("数组的值为:")
for(var i=0;i<myarr.length;i++)
{
myarr[i]=new Array(6);/*再申明二维数组*/
for(var j=0;j<myarr[i].length;j++)
{
myarr[i][j]=i*j;
document.write(" "+myarr[i][j])
}
document.write("\n");
}