aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/node/baseuriobject
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/node/baseuriobject
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/web/api/node/baseuriobject')
-rw-r--r--files/zh-cn/web/api/node/baseuriobject/index.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/node/baseuriobject/index.html b/files/zh-cn/web/api/node/baseuriobject/index.html
new file mode 100644
index 0000000000..759f97eb6a
--- /dev/null
+++ b/files/zh-cn/web/api/node/baseuriobject/index.html
@@ -0,0 +1,18 @@
+---
+title: Node.baseURIObject
+slug: Web/API/Node/baseURIObject
+translation_of: Web/API/Node
+---
+<div>
+ {{ApiRef}} {{Fx_minversion_header("3")}} {{Non-standard_header}}</div>
+<h2 id="Summary" name="Summary">概述</h2>
+<p><code>baseURIObject</code>属性返回一个代表当前节点(通常是文档节点或元素节点)的基URL的{{Interface("nsIURI")}}对象.该属性类似与{{domxref("Node.baseURI")}},只是它返回的是一个包含更多信息的nsIURI对象,而不只是一个URL字符串.</p>
+<p>该属性在所有类型的节点上都可用(HTML,XUL,SVG,MathML等),但脚本本身必须要有 UniversalXPConnect权限(XUL默认有这个权限,HTML没有).</p>
+<p>查看{{domxref("Node.baseURI")}}了解基URL(base URL)是什么.</p>
+<h2 id="Syntax" name="Syntax">语法</h2>
+<pre class="syntaxbox"><var>uriObj</var> = <em>node</em>.baseURIObject
+</pre>
+<h2 id="Notes" name="Notes">附注</h2>
+<p>该属性只读,尝试为它赋值会抛出异常. 此外,这个属性只能从特权代码中访问.</p>
+<h2 id="Specification" name="Specification">规范</h2>
+<p>不属于任何规范,mozilla私有属性.</p>