aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/document/all/index.html
blob: 5fb9f0dd4116cdb282e0250f163be5522ccc9c5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
title: document.all
slug: Web/API/Document/all
translation_of: Web/API/Document/all
---
<div>{{APIRef("DOM")}}{{Draft}}{{Deprecated_Header("HTML5")}}</div>

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

<h2 id="语法">语法</h2>

<pre class="syntaxbox">var <em>htmlAllCollection</em> = document.all;</pre>

<h3 id="值"></h3>

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

<h2 id="规范">规范</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">规范</th>
   <th scope="col">状态</th>
   <th scope="col">评论</th>
  </tr>
  <tr>
   <td>{{SpecName('HTML WHATWG', 'obsolete.html#dom-document-all', 'all')}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td>Initial definition.<br>
    Defined in the obsolete and legacy APIs section.</td>
  </tr>
 </tbody>
</table>

<h2 id="浏览器兼容性">浏览器兼容性</h2>



<article>
<p>{{Compat("api.Document.all")}}</p>
</article>

<article></article>