So the return value (sort of a misnomer, but still a useful way to think about things) for an attribute selector is a value; for an element, it's a node set (containing a single node).
因此对于属性选择器,返回值(虽然不确切但是很有用)是一个值,对于一个元素则是一个节点集(包含一个节点)。
Both XPath and jQuery let you combine more than one selector to retrieve every node that matches any of the queries (that is, you'll get the union of the results).
XPath和jQuery都允许您组合多个选择器来检索每个匹配任意查询的节点(就是说,将得到结果的并集)。
Both XPath and jQuery let you combine more than one selector to retrieve every node that matches any of the queries (that is, you'll get the union of the results).
XPath和jQuery都允许您组合多个选择器来检索每个匹配任意查询的节点(就是说,将得到结果的并集)。
应用推荐