为啥没显示,是代码错了吗?
<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+"]的值:"+myarr[i][j]+"<br>");
}
}
</script>
<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+"]的值:"+myarr[i][j]+"<br>");
}
}
</script>
2018-10-16
举报