{"json_modified": "2016-02-25T21:35:39.694780", "slug": "Web/API/document/evaluate", "tags": [], "locale": "ja", "title": "Document.evaluate()", "translations": [{"title": "Document.evaluate()", "url": "/en-US/docs/Web/API/Document/evaluate", "tags": ["API", "Reference", "XPath", "DOM", "Method"], "summary": "Returns an XPathResult
based on an XPath expression and other given parameters.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-09-26T03:47:05", "review_tags": []}, {"title": "document.evaluate", "url": "/fr/docs/Web/API/Document/evaluate", "tags": ["DOM"], "summary": "", "localization_tags": [], "locale": "fr", "last_edit": "2013-06-23T06:38:22", "review_tags": []}, {"title": "document.evaluate", "url": "/zh-CN/docs/Web/API/Document/evaluate", "tags": [], "summary": "\u6839\u636e\u4f20\u5165\u7684\u00a0XPath\u00a0\u8868\u8fbe\u5f0f\u4ee5\u53ca\u5176\u4ed6\u53c2\u6570\uff0c\u8fd4\u56de\u4e00\u4e2a\u00a0XPathResult
\u00a0\u5bf9\u8c61\u3002", "localization_tags": ["inprogress"], "locale": "zh-CN", "last_edit": "2014-10-22T20:19:11", "review_tags": []}], "modified": "2016-02-25T21:35:39", "label": "Document.evaluate()", "localization_tags": ["inprogress"], "url": "/ja/docs/Web/API/document/evaluate", "last_edit": "2016-02-25T21:35:33", "summary": "Note, in the above example, a more verbose XPath is preferred over common shortcuts such as //h2
. Generally, more specific XPath selectors as in the above example usually gives a significant performance improvement, especially on very large documents. This is because the evaluation of the query spends does not waste time visiting unnecessary nodes. Using // is generally slow as it visits every node from the root and all subnodes looking for possible matches.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "\u69cb\u6587"}, {"id": "Example", "title": "\u4f8b"}, {"id": "Notes", "title": "\u6ce8\u91c8"}, {"id": "Result_types", "title": "\u623b\u308a\u5024\u306e\u5206\u985e"}, {"id": "Specifications", "title": "\u4ed5\u69d8"}, {"id": "Browser_compatibility", "title": "\u30d6\u30e9\u30a6\u30b6\u4e92\u63db\u6027"}, {"id": "See_also", "title": "\u95a2\u9023\u9805\u76ee"}], "id": 165619, "review_tags": []}