classList 里面包含了add,remove,contains,toggle这四个调用方法,具体用法如下: classList.add()为添加一个class类名,如: div1.
確定! 回上一頁