var board = new Array();//1.for(var i = 0; i < 4; i++){
board[i] = new Array(); for(var j = 0; j < 4; j++){
board[i][j] = 0;
}
}//2.for(var i = 0; i < 4; i++){ for(var j = 0; j < 4; j++){
board[i][j] = 0;
}
}为什么1.中要加上board[i] = new Array();这两种取到的不是同一个值吗?
添加回答
举报
0/150
提交
取消