function hasClass(el, className) {. return el.classList ? el.classList.contains(className) : new RegExp('\\b'+ className+'\\b').test(el.className);. }.
確定! 回上一頁