向下函數(shù)的代碼里面的board[k]報錯,我輸出后顯示undefined,為什么會這樣,左上右都是正常的
顯示報錯是:
index.js:188 Uncaught TypeError: Cannot read properties of undefined (reading '0')
? ? at moveDown (index.js:188:18)
? ? at HTMLBodyElement.<anonymous> (index.js:52:8)
顯示報錯是:
index.js:188 Uncaught TypeError: Cannot read properties of undefined (reading '0')
? ? at moveDown (index.js:188:18)
? ? at HTMLBodyElement.<anonymous> (index.js:52:8)
2022-02-12
舉報
2022-11-23