Die js-Datei konnte nicht geladen werden
Memory
Memory 2018-03-30 16:01:14
0
1
1436

var board = new Array();

$(document).ready() {

newgame();

}


function newgame() {

init();

genericOneNumber() ;

genericOneNumber();

}


function init() {

alarm("sdf");

for (var i = 0; i < 4; i++) {

borad[ i] = new Array();

for (var j = 0; j < 4; j++) {

board[i][j] = 0;


var gridCell = $("#grid -cell-" + i + "-" + j);

GridCell.css("top", getPostTop(i, j));

GridCell.css("left", getPostLeft(i, j));

}

}

updateBoardview();

}


function updateBoardview() {

for (var i = 0; i < 4; i++) {


for (var j = 0; j < j++) {


$("#grid-container").append("<div class='number-cell' id='number-cell-" + i + "-" + j "'></div>");

var numberCell = $("#number-cell-" + i + "-" + j);

if (board[i] [j]) {


numberCell.css("width", 0 px);

numberCell.css("height", 0 px);

numberCell.css("top", getPostTop(i, j) + 100);

numberCell.css("left", getPostLeft(i, j) + 100);

} else {

numberCell.css("width", 100 px);

numberCell.css ("height", 100 px);

numberCell.css("top", getPostTop(i, j));

numberCell.css("left", getPostLeft(i, j));

numberCell.css ("Hintergrundfarbe", getNumberBackgroundColor(board[i][j]));

numberCell.css("color", getNumbercolor(board[i][j]));

numberCell.text(board[i [j]); );

var randy = parseInt(Math.floor(Math.random() * 4));

when(true) {

if (board[randx][randy] == 0) {

break;

}

var randx = parseInt(Math.floor(Math.random() * 4));


var randy = parseInt(Math.floor(Math.random() * 4));

}

var randNumber = Math.random() < 0,5 ? 2 : 4;

board[randx][randy] = randNumber;

showNumberWithAnimation(randx, randy, randNumber);

}

Memory
Memory

Antworte allen(1)
lge

f12看看报什么错,加载失败可能就是路径错了,检查一下路径看看

Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage