for(var i=0;i<n+2;i++){
var row = document.createElement('view');
row.setAttribute('class', 'row');
var cellArrayRow = [];
cellArray.push(cellArrayRow);
gameDiv.appendChild(row);
for(var j=0;j<m+2;j++){
var cell = document.createElement('view');
cellArrayRow.push(cell);
if(i==0||j==0||i==n+1||j==m+1){
cell.setAttribute('class', 'border');
cell.innerHTML = empty;
}else{
报错:[Vue warn]: Error in mounted hook: "TypeError: Cannot read property 'createElement' of undefined"
2***@qq.com
for什么呀,for怎么实现create,真就张口就来是吧
2023-06-26 12:38
兔斯基哟
回复 2***@qq.com: 哈哈哈,他根本就没看问题
2023-06-28 16:31