📜  过滤 htmlcollection - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:22.540000             🧑  作者: Mango

代码示例2
const chapters = document.querySelectorAll(".chapter-list-item:not(.active)");

console.log("Found elements:")
for (const chapter of chapters) {
  console.log(chapter.textContent, chapter.className)
}