// 滑过滑过、离开、点击每个选项时 for(var i = 0 , l = as.length ; i < l ; i ++ ){ as[i].onmouseover = function(){ a[i].style.background = '#567'; } 报错mouseKeyEvent.html:94 Uncaught TypeError: Cannot read property 'style' of undefined 有什么好的解决办法么,不用this怎么解决?
as[i].style.background = '#567'; 你打错了啊