<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>二维数组</title><script type="text/javascript">var myarr=[[0,1,2],[1,2,3,4,5,6]];for(var i=0;i<3;i++){ for(var j=0;j<6;j++){ myarr[i][j]=i*j; document.write(i+"行"+j+"列"+myarr[i][j]+"<br/>");}document.write("<br/>");} </script></head><body></body></html>
添加回答
举报
0/150
提交
取消