var board = new Array();
$(document).ready() {
newgame();
}
function newgame() {
init();
generateOneNumber();
generateOneNumber();
}
## var gridCell = $("#grid-cell-" + i + "-" + j);
gridCell.css("top", getPostTop(i, j));
gridCell.css("left", getPostLeft(i, j));
}
}
updateBoardview();
}
##function updateBoardview() {
var numberCell = $("#number-cell-" + i + "-" + j);
if (board[i][j]) {
## numberCell.css("宽度", 0 px);
numberCell.css("高度", 0 px);
#}
#functiongenerateOneNumber() {
var randx = parseInt(Math.floor(Math.random() * 4));