Skip to content

Commit 5fa2112

Browse files
authored
[zh-cn]: update the translation of document defaultView property (#20375)
1 parent cb3956d commit 5fa2112

File tree

1 file changed

+12
-16
lines changed
  • files/zh-cn/web/api/document/defaultview

1 file changed

+12
-16
lines changed
Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,24 @@
11
---
2-
title: Document.defaultView
2+
title: DocumentdefaultView 属性
33
slug: Web/API/Document/defaultView
4+
l10n:
5+
sourceCommit: 0a881eea07f0cec6ca4ed85a24af43b367a9f80d
46
---
57

6-
{{ ApiRef() }}
8+
{{ApiRef}}
79

8-
### 概述
10+
在浏览器中,**`document.defaultView`** 返回与{{Glossary("Browsing_context", "文档")}}关联的 {{domxref("Window", "window")}} 对象,如果没有可用的对象,则返回 `null`
911

10-
在浏览器中,该属性返回当前 `document` 对象所关联的 [`window`](/zh-CN/DOM/window) 对象,如果没有,会返回 `null`
12+
该属性是只读的
1113

12-
### 语法
14+
##
1315

14-
```plain
15-
var win = document.defaultView;
16-
```
16+
{{domxref("Window", "window")}} 对象。
1717

18-
该属性只读。
18+
## 规范
1919

20-
### 备注
20+
{{Specifications}}
2121

22-
根据 [quirksmode](http://www.quirksmode.org/dom/w3c_html.html),IE 9 以下版本不支持 `defaultView`
22+
## 浏览器兼容性
2323

24-
### 规范
25-
26-
- [HTML5: defaultView](/zh-CN/HTML/HTML5)
27-
- [DOM Level 2 Views: defaultView](http://www.w3.org/TR/DOM-Level-2-Views/views.html#Views-DocumentView-defaultView)
28-
- [DOM Level 3 Views](http://www.w3.org/TR/DOM-Level-3-Views/) (Only developed to Working Group Note and not implemented)
24+
{{Compat}}

0 commit comments

Comments
 (0)