How to get the number of elements of child nodes of the current node

1. 使用 ParentNode.children.length;

2. 使用ParentNode.childElementCount; 

 

Guess you like

Origin www.cnblogs.com/aisowe/p/11528827.html