Use element.classList .contains method: element.classList.contains(class);. This works on all current browsers and there are polyfills to ...
確定! 回上一頁