怎样获取当前节点的元素子节点个数

1. 使用 ParentNode.children.length;

2. 使用ParentNode.childElementCount; 

猜你喜欢

转载自www.cnblogs.com/aisowe/p/11528827.html
今日推荐