XPathExpression

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!
您也可以阅读此文章的English (US)版。

An XPathExpression is a compiled XPath query returned from document.createExpression(). It has a method evaluate() which can be used to execute the compiled XPath.

Methods

  • evaluate (contextNode, type, result) - provide a context node/document, XPathResult constant, and XPathResult to store the query or null to return a new XPathResult.
  • evaluateWithContext (contextNode, contextPosition, contextSize, type, result) - provide a context node/document, context position, context size, XPathResult constant, and XPathResult to store the query or null to return a new XPathResult.

文档标签和贡献者