我跟老师的代码一样可是不知道为什么会提示这个:Cannot read property 'getElementsByTagName' of null
//切换状态
var longinState=document.getElementById('longinState'),
stateList=document.getElementById('loginStatePanel'),
lis=stateList.getElementsByTagName('li'),
stateTxt=document.getElementById('login2qq_state_txt');
loginState.onclick=function(){
stateList.style.display='block';
}
woshiajuana
相关分类