From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../web/api/document/createexpression/index.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 files/zh-cn/web/api/document/createexpression/index.html (limited to 'files/zh-cn/web/api/document/createexpression/index.html') diff --git a/files/zh-cn/web/api/document/createexpression/index.html b/files/zh-cn/web/api/document/createexpression/index.html new file mode 100644 index 0000000000..50636d1874 --- /dev/null +++ b/files/zh-cn/web/api/document/createexpression/index.html @@ -0,0 +1,19 @@ +--- +title: document.createExpression +slug: Web/API/Document/createExpression +translation_of: Web/API/Document/createExpression +--- +

{{ ApiRef() }}

+

该方法将编译生成一个 XPathExpression ,可以用来多次的执行.

+

语法

+
xpathExpr = document.createExpression(xpathText, namespaceURLMapper);
+
+

参数

+ +

{{ Fx_minversion_note("3") }}

+

返回值

+

XPathExpression

+

{{ languages( {"en": "en/DOM/document.createExpression" } ) }}

-- cgit v1.2.3-54-g00ecf