{"json_modified": "2015-02-24T18:57:09.843792", "slug": "Web/API/ParentNode/childElementCount", "tags": [], "locale": "zh-CN", "title": "ParentNode.childElementCount", "translations": [{"title": "ParentNode.childElementCount", "url": "/en-US/docs/Web/API/ParentNode/childElementCount", "tags": ["ParentNode", "Property", "DOM", "API"], "summary": "", "localization_tags": [], "locale": "en-US", "last_edit": "2015-02-22T10:22:33", "review_tags": []}], "modified": "2015-02-24T18:57:09", "label": "ParentNode.childElementCount", "localization_tags": [], "url": "/zh-CN/docs/Web/API/ParentNode/childElementCount", "last_edit": "2015-02-24T18:57:07", "summary": "childElementCount
\u5c5e\u6027\u8fd4\u56de\u5f53\u524d\u5143\u7d20\u7684\u5b50\u5143\u7d20\u4e2a\u6570,\u800c\u4e0d\u662f\u5b50\u8282\u70b9\u4e2a\u6570. \u53ea\u6709\u5f53\u4e00\u4e2a\u8282\u70b9\u7684nodeType\u5c5e\u6027\u4e3a1(Node.ELEMENT_NODE==1)\u65f6,\u5b83\u624d\u662f\u5143\u7d20\u8282\u70b9 .\u6587\u672c\u8282\u70b9\u548c\u6ce8\u91ca\u8282\u70b9\u4e0d\u5c5e\u4e8e\u5143\u7d20\u8282\u70b9.
\n \u5982\u679c\u4f60\u9700\u8981\u83b7\u53d6\u4e00\u4e2a\u5143\u7d20\u7684\u5b50\u5143\u7d20\u800c\u4e0d\u662f\u5b50\u5143\u7d20\u4e2a\u6570, \u8bf7\u4f7f\u7528element.children
\u5c5e\u6027.
\n \u6ce8\u610f:\u5728IE9\u4e4b\u524d,element.children\u4f1a\u5305\u542b\u4e00\u4e2a\u5143\u7d20\u7684\u5b50\u5143\u7d20\u8282\u70b9\u548c\u5b50\u6ce8\u91ca\u8282\u70b9.\u5728IE9\u4e4b\u540e\u6216\u8005\u5176\u4ed6\u6d4f\u89c8\u5668\u4e2d, \u53ea\u5305\u542b\u5b50\u5143\u7d20\u8282\u70b9.", "sections": [{"id": "Quick_Links", "title": "ParentNode Properties ParentNode.childElementCount ParentNode.children ParentNode.firstElementChild ParentNode.lastElementChild Implemented by: Document DocumentFragment Element"}, {"id": "Summary", "title": "\u6982\u8ff0"}, {"id": "Syntax_and_values", "title": "\u8bed\u6cd5"}, {"id": ".E4.BE.8B.E5.AD.90", "title": "\u4f8b\u5b50"}, {"id": ".E6.B5.8F.E8.A7.88.E5.99.A8.E5.85.BC.E5.AE.B9.E6.80.A7", "title": "\u6d4f\u89c8\u5668\u517c\u5bb9\u6027"}, {"id": "Specification", "title": "\u89c4\u8303"}, {"id": ".E7.9B.B8.E5.85.B3.E9.93.BE.E6.8E.A5", "title": "\u76f8\u5173\u94fe\u63a5"}], "id": 1315, "review_tags": []}