到底哪里错了?
for (var i = 0; i < as.length; i++) {
as[i].onmouseover = function(){
this.style.backgroud = '#ccc';
}
as[i].onmouseout = function(){
this.style.backgroud = '#fff';
}
}
谁给解释下为什么编辑器会报错?运行也没颜色变化,,,到底哪里错了?
for (var i = 0; i < as.length; i++) {
as[i].onmouseover = function(){
this.style.backgroud = '#ccc';
}
as[i].onmouseout = function(){
this.style.backgroud = '#fff';
}
}
谁给解释下为什么编辑器会报错?运行也没颜色变化,,,到底哪里错了?
2017-11-27
举报