Web/HTML [HTML, JS] element의 여러개의 className중 하나에 접근해보자 classList.contains() insub4067 2022. 1. 11. 00:08 참고자료 DOMTokenList.contains() - Web API | MDN The contains() method of the DOMTokenList interface returns a Boolean — true if the underlying list contains the given token, otherwise false. developer.mozilla.org 저작자표시 (새창열림)