태그 : addClass 요약보기전체보기목록닫기

1

[Js/DOM] hasClass, addClass method

ref. JUNE.jsfunction hasClass(el, val) {// var pattern = new RegExp("(^| )" + val + "( |$)"); var pattern = new RegExp("(^|\\s)" + val + "(\\s|$)"); if (pattern.test(el.className)) {&...
1