Get the parent node (the person element).
访问父节点(person元素)。
Stores a 0 to show that it has no parent node.
存储0以表示其不含父节点。
Get the parent node (in this case, the person element).
获得父节点(person元素)。
Each record is represented by an element within the parent node.
每条记录都由父节点中的元素表示。
The JSON object for a parent node might look like the following example.
父节点的JSON对象可能类似以下例子。
We can simply write one function, which retrieves the children of a certain parent node.
我们能简单写一个函数,检索没有父节点的子节点。
Parent step: move from a node to that node's parent.
父步骤:从一个节点移动到该节点的父节点。
Similarly, a black parent with two black children does not represent a 4-node.
同样,有两个黑色子节点的黑色父节点也不代表4 -节点。
Similarly, a black parent with two black children does not represent a 4-node.
同样,有两个黑色子节点的黑色父节点也不代表4 -节点。
应用推荐