現在のノードの子ノードの要素数を取得する方法

1.使用ParentNode.children.length。

2.使用ParentNode.childElementCount。 

 

おすすめ

転載: www.cnblogs.com/aisowe/p/11528827.html