如下代码,把clearInterval(this.time)注释掉就会产生动画累加的影响,为什么呢
A[i].onmouseover=function() { // clearInterval(this.time); var This=this; This.time=setInterval(function() { This.style.width=This.offsetWidth+8+"px"; if(This.offsetWidth>=160) { clearInterval(This.time); } },30); }