語法
var ppTreeWalker = document.createTreeWalker(pRootNode, ulWhatToShow, pFilter, fEntityReferenceExpansion);
參數
- pRootNode [in]
-
Type: NodeThe root element or node to start traversing on.
- ulWhatToShow [in]
-
Type: IntegerThe type of nodes or elements to appear in the node list. For more information, see whatToShow.
- pFilter [in]
-
Type: VariantA custom NodeFilter function to use. For more information, see filter. Use a pointer to a null value for no filter.
- fEntityReferenceExpansion [in]
-
Type: BooleanA flag that specifies whether entity reference nodes are expanded. For more information, see expandEntityReferences.
- ppTreeWalker [out, retval]
-
Type: TreeWalkerReturns a TreeWalker object.
返回值
Type: TreeWalker
Returns a TreeWalker object.
时间: 2024-10-08 09:45:27