注意中间没有运算符。看到一段代码是这样的: this.checkerboard.forEach((value, index) => { const S1Item = value[y - (x - index)]; })this.checkerboard是一个二维数组,请问const S1Item保存的值是怎么得到的?===========================================================================x,y是正整数,等于(数组.length)个正整数,并且x,y值中的每一个都一样
添加回答
举报
0/150
提交
取消