使用classList,程序员还可以用它来判断某个节点是否被赋予了某个CSS类。 添加类(add). document.getElementById("myDIV").classList.add ...
確定! 回上一頁