为什么clearInterval要使用两次?
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) }
为什么在if判断中不会停止?
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) }
为什么在if判断中不会停止?
2016-10-19
举报