这个if放这是不是多余呢,我将他删掉了也一样效果
if(oSubNav){
var This=oSubNav;
clearInterval(This.time);
This.time=setInterval(function(){
This.style.height=This.offsetHeight+8+"px";
if(This.offsetHeight>=120)
clearInterval(This.time);
},30)
}
if(oSubNav){
var This=oSubNav;
clearInterval(This.time);
This.time=setInterval(function(){
This.style.height=This.offsetHeight+8+"px";
if(This.offsetHeight>=120)
clearInterval(This.time);
},30)
}
2016-06-07
举报