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/baseuriobject/index.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 files/zh-cn/web/api/node/baseuriobject/index.html (limited to 'files/zh-cn/web/api/node/baseuriobject') 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 +--- +
+ {{ApiRef}} {{Fx_minversion_header("3")}} {{Non-standard_header}}
+

概述

+

baseURIObject属性返回一个代表当前节点(通常是文档节点或元素节点)的基URL的{{Interface("nsIURI")}}对象.该属性类似与{{domxref("Node.baseURI")}},只是它返回的是一个包含更多信息的nsIURI对象,而不只是一个URL字符串.

+

该属性在所有类型的节点上都可用(HTML,XUL,SVG,MathML等),但脚本本身必须要有 UniversalXPConnect权限(XUL默认有这个权限,HTML没有).

+

查看{{domxref("Node.baseURI")}}了解基URL(base URL)是什么.

+

语法

+
uriObj = node.baseURIObject
+
+

附注

+

该属性只读,尝试为它赋值会抛出异常. 此外,这个属性只能从特权代码中访问.

+

规范

+

不属于任何规范,mozilla私有属性.

-- cgit v1.2.3-54-g00ecf