classList returns a live DOMTokenList . This means that we can use DOMTokenList.contains() method to check whether the Element.
確定! 回上一頁