红框里报错显示Uncaught TypeError:cannot read property 'add' of undefined.有没有知道怎么解决的
把这个语句改成:myNumberLI[imgCount-1].classList.Add('act')试试
this.classList为undefined,这里的this指向的是window
this.classList
undefined
this
window