为什么会一直变宽,老师讲的时候没有啊
aA[i].onmouseover=function(){
var This=this;
clearInterval(This.time);
This.time=setInterval(function(){
This.style.width=This.offsetWidth+8+"px";
if(This.offsetwidth>=160)
clearInterval(This.time);
},30)
}
aA[i].onmouseover=function(){
var This=this;
clearInterval(This.time);
This.time=setInterval(function(){
This.style.width=This.offsetWidth+8+"px";
if(This.offsetwidth>=160)
clearInterval(This.time);
},30)
}
2017-03-07
举报