久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      javascript如何刪除class

      javascript刪除class的方法:【var btn=document.querySelector(".btn1");btn.onclick=function(){ this.classList.remove("btn2")}】。

      javascript如何刪除class

      本文操作環(huán)境:windows10系統(tǒng)、javascript 1.8.5、thinkpad t480電腦。

      javascript添加class的方法:

      obj.classList.add("active");

      javascript刪除class的方法:

      obj.classList.remove("active");

      示例:

      <button class="btn1 btn2">點擊</button>         <script>             var btn=document.querySelector(".btn1");             btn.onclick=function(){                 this.classList.remove("btn2")             } </script>

      推薦學習:javascript視頻教程

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號