語法
var ppTreeWalker = document.createTreeWalker(pRootNode, ulWhatToShow, pFilter, fEntityReferenceExpansion);
參數
- pRootNode [in]
-
Type: Node
The root element or node to start traversing on.
- ulWhatToShow [in]
-
Type: Integer
The type of nodes or elements to appear in the node list. For more information, see whatToShow.
- pFilter [in]
-
Type: Variant
A custom NodeFilter function to use. For more information, see filter. Use a pointer to a null value for no filter.
- fEntityReferenceExpansion [in]
-
Type: Boolean
A flag that specifies whether entity reference nodes are expanded. For more information, see expandEntityReferences.
- ppTreeWalker [out, retval]
-
Type: TreeWalker
Returns a TreeWalker object.
返回值
Type: TreeWalker
Returns a TreeWalker object.