this指向问题
var aLi=document.getElementsByTagName('li');
for(var i=0; i<aLi.length; i++){
aLi[i].onmouseover=function(){
//鼠标经过一级菜单,二级菜单动画下拉显示出来
var subNav = this.getElementsByTagName("ul")[0];
if(subNav){
var This = subNav;
clearInterval(This.time);
This.time = setInterval(function(){
This.style.height=This.offsetHeight+16+"px";
if(This.offsetHeight>=120){
clearInterval(This.time);
}
},30)
}
这段代码中var subNav = this.getElementsByTagName("ul")[0];的this指的是什么?