标签:
//Javascript二维数组的声明
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <script type="text/javascript"> var node=new Array(); //声明一维数组 for(var i=1; i<=9; i++){ node[i]=new Array; //声明二维数组 for(var j=1; j<=9; j++){ node[i][j]=i*j; document.write("第"+i+"&"+j+"个元素是:"+node[i][j]+"<br/>"); } } </script> </body> </html>
标签:
原文地址:http://my.oschina.net/dongdong11019/blog/499199