代码如下:
var arr:Array = new Array();
arr[0]=["1","2","3"];
arr[1]=["4","5","6"];
arr[2]=["7","8","9"];
for(var i:int=0; i<arr.length; i++){
for(var j:int=0; j<arr[i].length; j++){
trace("第arr["+i+"]["+j+"]的值是"+arr[i][j]);
}
}
结果:
(完)
代码如下:
var arr:Array = new Array();
arr[0]=["1","2","3"];
arr[1]=["4","5","6"];
arr[2]=["7","8","9"];
for(var i:int=0; i<arr.length; i++){
for(var j:int=0; j<arr[i].length; j++){
trace("第arr["+i+"]["+j+"]的值是"+arr[i][j]);
}
}
结果:
(完)