Create the div element inside the function. function generateGrid() { var div = document.createElement('div'); document.getElementById("grid").appendChild( ...
確定! 回上一頁