文章的直接链接 循环遍历 querySelectorAll 匹配项 forEach NodeList querySelectorAll 循环遍历 querySelectorAll 匹配项 让我们看看一些迭代 NodeList 的选项,就像你从运行 document.querySelectorAll 获取到的那样。 我们已经写了一篇关于这方面的更新文章:循环遍历 querySelectorAll NodeLists 的多种选项。… Chris Coyier 于 2018年11月12日