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/document/all/index.html | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 files/zh-cn/web/api/document/all/index.html (limited to 'files/zh-cn/web/api/document/all') diff --git a/files/zh-cn/web/api/document/all/index.html b/files/zh-cn/web/api/document/all/index.html new file mode 100644 index 0000000000..5fb9f0dd41 --- /dev/null +++ b/files/zh-cn/web/api/document/all/index.html @@ -0,0 +1,44 @@ +--- +title: document.all +slug: Web/API/Document/all +translation_of: Web/API/Document/all +--- +
{{APIRef("DOM")}}{{Draft}}{{Deprecated_Header("HTML5")}}
+ +

{{domxref("Document")}} 接口上的一个只读属性。返回一个 {{domxref("HTMLAllCollection")}},包含了页面上的所有元素。

+ +

语法

+ +
var htmlAllCollection = document.all;
+ +

+ +

返回一个 {{domxref("HTMLAllCollection")}},包含了页面上的所有元素。

+ +

规范

+ + + + + + + + + + + + + + +
规范状态评论
{{SpecName('HTML WHATWG', 'obsolete.html#dom-document-all', 'all')}}{{Spec2('HTML WHATWG')}}Initial definition.
+ Defined in the obsolete and legacy APIs section.
+ +

浏览器兼容性

+ + + +
+

{{Compat("api.Document.all")}}

+
+ +
-- cgit v1.2.3-54-g00ecf