[アート] DOMプログラミンググライドはhighLightRowsを強調しました

関数highLightRows(){ 
     VAR行= document.getElementsByTagName( 'TR'); 
    (; iは、VAR I = 0 < {iは++; .LENGTH)
        行[i]は.onmouseover =関数(){
             this.style.fontWeight = '太字'。
        } 
        行[i]は.onmouseout =関数(){
             this.style.fontWeight = '正常';
        } 
        
    } 
}

 

ます。https://www.cnblogs.com/positive/p/3678825.htmlで再現

おすすめ

転載: blog.csdn.net/weixin_34085658/article/details/93495781