重要的是要注意 document.querySelectorAll() 不返回數組,而是一個NodeList對象。 您可以使用進行迭代 forEach 或者 for..of ,也可以使用 Array.from() 如果你想。
確定! 回上一頁