classList · contains() – Returns true if the element has the provided class, else returns false. · add() – Adds the given class to the element.
確定! 回上一頁