NodesRef: path() method
Query the path information from the node to the root node of the page.
Syntax
Parameters
callback
A callback function, the query result will be returned as the parameter of the callback function. The callback function has two parameters:
The first parameter returns the query result.
- If the
NodesRefrepresents one single node, it returns aRecord<string, any>object containing the query result. If the node is not found, it returnsnull. - If the
NodesRefrepresents multiple nodes, it returns an array ofRecord<string, any>objects, each element in the array corresponds to the query result of a node. If no nodes are found, it returns an empty array.
The second parameter returns the status of the query (error message).
Return Value
Contains the SelectorQuery object for this task. Call exec() to execute the task.
Examples
Possible output:
Compatibility
LCD tables only load in the browser