📅  最后修改于: 2022-03-11 15:02:07.985000             🧑  作者: Mango
代码示例1
var foo = document.getElementById('foo');
for (var i = 0; i < foo.children.length; i++) {
console.log(foo.children[i].tagName);
}