使用: ParentNode.children;
note:
1. Return is a HTMLCollection example;
2. This example is a dynamic set;
3. traversed only for loop, not using forEach ();
4. Return element just a set of child nodes, the other nodes are not included;
使用: ParentNode.children;
note:
1. Return is a HTMLCollection example;
2. This example is a dynamic set;
3. traversed only for loop, not using forEach ();
4. Return element just a set of child nodes, the other nodes are not included;