diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/node/lookupprefix/index.html | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/web/api/node/lookupprefix/index.html')
-rw-r--r-- | files/zh-cn/web/api/node/lookupprefix/index.html | 19 |
1 files changed, 19 insertions, 0 deletions
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 +--- +<div>{{APIRef("DOM")}}</div> + +<p>返回一个和指定命名空间URI绑定的命名空间前缀.如果没有,返回<code>null</code>. 如果有多个绑定的前缀, 返回的结果根据浏览器实现而定.</p> + +<p>根据 <a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=312019" title="https://bugzilla.mozilla.org/show_bug.cgi?id=312019">bug 312019</a>, 该方法对动态指定的命名空间不起作用.(也就是通过<a href="/en/DOM/Node.prefix" title="En/DOM/Node.prefix">Node.prefix</a>指定的).</p> + +<h3 id="相关链接">相关链接</h3> + +<ul> + <li><a class="external" href="http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-lookupNamespacePrefix" rel="freelink">http://www.w3.org/TR/DOM-Level-3-Cor...amespacePrefix</a></li> + <li><a href="/En/Code_snippets/LookupPrefix" title="En/Code_snippets/LookupPrefix">Code snippets: lookupPrefix</a></li> +</ul> + +<p>{{ languages( { "en": "en/DOM/Node.lookupPrefix" } ) }}</p> |