📜  对于 htmlcollection javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:36.435000             🧑  作者: Mango

代码示例1
var list = document.getElementsByClassName("class-name");
for (let item of list) {
    console.log(item.id);
}