📜  javascript循环类 - Javascript代码示例

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

代码示例3
var myElements = document.getElementsByClassName("some_class_name");
for(var i = 0; i < myElements.length; i++){
    console.log(myElements[i]);
}