From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/api/node/lookupprefix/index.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 files/zh-cn/web/api/node/lookupprefix/index.html (limited to 'files/zh-cn/web/api/node/lookupprefix/index.html') diff --git a/files/zh-cn/web/api/node/lookupprefix/index.html b/files/zh-cn/web/api/node/lookupprefix/index.html new file mode 100644 index 0000000000..0f9210e2f7 --- /dev/null +++ b/files/zh-cn/web/api/node/lookupprefix/index.html @@ -0,0 +1,19 @@ +--- +title: Node.lookupPrefix +slug: Web/API/Node/lookupPrefix +translation_of: Web/API/Node/lookupPrefix +--- +
{{APIRef("DOM")}}
+ +

返回一个和指定命名空间URI绑定的命名空间前缀.如果没有,返回null. 如果有多个绑定的前缀, 返回的结果根据浏览器实现而定.

+ +

根据 bug 312019, 该方法对动态指定的命名空间不起作用.(也就是通过Node.prefix指定的).

+ +

相关链接

+ + + +

{{ languages( { "en": "en/DOM/Node.lookupPrefix" } ) }}

-- cgit v1.2.3-54-g00ecf