这是我的函数代码的一部分,它在 javascript 错误控制台(谷歌浏览器)上出错
function premuto(x){
if(x.Clickable){
x.Selected = !x.Selected;
if (x.Selected){
x.style.backgroundColor ='lightblue';
y = document.getElementById('spazio');
y.innerHTML = y.innerHTML + x.innerHTML;
sequenza[indice] = x.Number;
indice++;
}
错误比较在“sequenza [indice] = x.Number;”行
怎么了?
谢谢