第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

請問如何把我轉(zhuǎn)為注釋的部分封裝到一個函數(shù)

function?drag(){
???var?loginState=document.getElementById('loginState'),
???????stateList=document.getElementById('loginStatePanel'),
???????lis=stateList.getElementsByTagName('li'),
???????stateTxt=document.getElementById('login2qq_state_txt'),
???????loginStateShow=document.getElementById('loginStateShow');


/*???loginState.onclick=function(e){
????????e?=?e?||?window.event;
?????if(e.stopPropagation){
??????????e.stopPropagation();
?????}else{
??????????e.cancelBubble=true;
?????}*/
????????stateList.style.display='block';
???}

???//?鼠標(biāo)滑過、離開和點擊狀態(tài)列表時
???for(var?i=0,l=lis.length;i<l;i++){
??????lis[i].onmouseover=function(){
???????this.style.background='#567';
??????}
??????lis[i].onmouseout=function(){
???????this.style.background='#FFF';
??????}
??????/*lis[i].onclick=function(e){
???????e?=?e?||?window.event;
???????if(e.stopPropagation){
??????????e.stopPropagation();
???????}else{
??????????e.cancelBubble=true;
???????}*/
???????var?id=this.id;
???????stateList.style.display='none';
????????stateTxt.innerHTML=getByClass('stateSelect_text',id)[0].innerHTML;
????????loginStateShow.className='';
????????loginStateShow.className='login-state-show?'+id;
??????}
???}


正在回答

1 回答

算了,我知道怎么做了,是我看錯了才一直沒寫對

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消

請問如何把我轉(zhuǎn)為注釋的部分封裝到一個函數(shù)

我要回答 關(guān)注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號