📅  最后修改于: 2022-03-11 15:02:57.877000             🧑  作者: Mango
/* SELECT using PARENT.childNodes */
let allChildren = document.querySelector("#parentSelector").childNodes
/* PRINT */
for(let i=0; i < allChildren.length; i++) {
console.log("Child #", i + 1, allChildren[i])
}