728x90
<button class="btnBox active"></button>
console.log( $('btnBox').hasClass('active') ); // 결과 : true
console.log( $('btnBox').hasClass('apple') ); // 결과 : false
728x90
'Language > Front End' 카테고리의 다른 글
VueJS에서 Webpack이 아닌 Vite를 사용해야 하는 이유 (0) | 2023.11.17 |
---|---|
Moment.js의 날짜 데이터는 어디서 가져올까? (0) | 2023.05.24 |
JavaScript ] 스코프(Scope)와 스코프 체인(Scope Chain) 그리고 클로져(Closure) 이해하기. (0) | 2021.12.01 |
AUI 그리드 ] The Date has expired for AUIGrid (0) | 2020.08.04 |
AUI 그리드 ] AUI Grid 기본 사용법(에이유아이소프트) (0) | 2020.08.04 |