aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/document/embeds/index.html
blob: b7cdce99fcc564182fe895f7273fa69e5aefa77f (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
45
46
47
48
49
50
51
---
title: document.embeds
slug: Web/API/Document/embeds
tags:
  - API
  - Document
  - HTML DOM
  - NeedsContent
  - NeedsExample
  - NeedsMarkupWork
  - NeedsSpecTable
  - Property
translation_of: Web/API/Document/embeds
---
<p>{{ ApiRef() }}</p>

<p>{{domxref("Document")}}接口的只读属性<code>embeds</code> 返回当前文档内的&lt;embed&gt;<strong>HTML </strong>{{htmlelement("object")}}元素列表</p>

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

<pre class="eval"><em>nodeList</em> = document.embeds
</pre>

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

<p>一个 {{domxref("HTMLCollection")}}类型的值</p>

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

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('HTML WHATWG', '#dom-document-embeds', 'Document.embeds')}}</td>
   <td>{{ Spec2('HTML WHATWG') }}</td>
   <td> </td>
  </tr>
 </tbody>
</table>

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



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