Home > utils > TreeData > traverseNode
遍历节点。
Signature:
traverseNode(node: OneOrMore<TNode> | ((payload: TreeDataTraverseFnPayload<TNode>) => boolean), fn: OneOrMore<TreeDataTraverseFn<TNode> | false>, searchStrategy?: TreeDataSearchStrategy): this;
Parameter | Type | Description |
---|---|---|
node | OneOrMore<TNode> | ((payload: TreeDataTraverseFnPayload<TNode>) => boolean) | 节点 |
fn | OneOrMore<TreeDataTraverseFn<TNode> | false> | 遍历函数 |
searchStrategy | TreeDataSearchStrategy | (Optional) 遍历搜索方式,默认为选项中的遍历搜索方式 |
Returns:
this