Selects all the ancestor nodes of the current node that match the selection criteria.
选取目前节点中,所有符合选取准则的祖系节点。
By default, all parent and ancestor nodes above the current context node are displayed.
默认情况下,会显示当前上下文节点上面的所有父节点和祖先节点。
Selects all the ancestor nodes of the current node that have the specified local name and namespace URI.
选取目前节点中,所有具有指定区域名称和命名空间uri的祖系节点。
Methods for determining the ancestor nodes priority number of the expanded node and selecting effectively the ancestor nodes by means of the priority number are also given.
给出了一个包含有向回路的与或图的求解算法,以及如何确定被扩展节点的祖先节点的优先数,并通过优先数有效地选取祖先节点的方法也在本文中给出。
This method tells you all information you need to know: whether one node is descendant of an ancestor of the other, whether it is before or after, and so on.
这个方法告诉您所有想知道的信息:一个节点是否是另一个节点的祖先的后代,它是在前面还是后面呢,等等。
Like ancestor in XPath, descendant has a descendant-or-self for those special cases where the selected node might match what you're looking for (see Figure 3).
对于那些特殊情况,即选择的节点可能匹配您正在寻找的元素,那么跟XPath中的祖先一样,子孙也具有descendant - or - self(参见图3)。
If you must use descendant selectors, prefer child selectors, which at least only require evaluation of one additional node, not all the intermediate nodes up to an ancestor.
如果您必须使用后代选择器,尽量使用子代选择器,这最少只需评估一个额外的节点,而非中间直至祖先的所有节点。
This method tells you all you need to know: whether one node is a descendent or an ancestor of the other, whether it is before or after, and so on.
这个方法告诉您所有想知道的内容:一个节点是另一个节点的后代还是祖先、在前面还是后面等等。
One thing to note is that the jQuery closest method works more like XPath's ancestor-or-self; it will include the current node if it matches.
有一件事要注意,jQueryclosest方法的行为很像XPath的ancestor - or - self;如果匹配的话,它将包含当前节点。
Returns a filtered collection of the ancestor elements of this node.
传回这个节点的祖系项目之筛选的集合。
Optionally a node name can be specified to filter for ancestor elements with a specific name.
还可以选择指定一个节点名来筛选具有特定名称的上级元素。
Returns a collection of the ancestor elements of this node.
返回此节点的上级元素的集合。
Returns a collection of the ancestor elements of this node.
返回此节点的上级元素的集合。
应用推荐