For example, if the selector is a class, you might use classList.contains() . // Listen to all clicks on the document document.addEventListener( ...
確定! 回上一頁