20번째 클릭 네모난 블록 표시 그림

4427 단어 기초연습 문제



    
    
    
    Document
    


    "1" width='500' height='500' cellspacing='0'>
        
var mytd=document.<span class="token function">getElementsByTagName</span><span class="token punctuation">(</span><span class="token string">'td'</span><span class="token punctuation">)</span><span class="token selector">; console.log(mytd) for(i in mytd)</span><span class="token punctuation">{ </span> <span class="token selector">mytd[i].οnclick=function()</span><span class="token punctuation">{ </span> this.style.background=<span class="token string">'none'</span> <span class="token punctuation">}</span> <span class="token punctuation">}</span>

좋은 웹페이지 즐겨찾기