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/clear/index.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 files/zh-cn/web/api/document/clear/index.html (limited to 'files/zh-cn/web/api/document/clear') diff --git a/files/zh-cn/web/api/document/clear/index.html b/files/zh-cn/web/api/document/clear/index.html new file mode 100644 index 0000000000..f4a8008ff6 --- /dev/null +++ b/files/zh-cn/web/api/document/clear/index.html @@ -0,0 +1,21 @@ +--- +title: Document.clear() +slug: Web/API/Document/clear +translation_of: Web/API/Document/clear +--- +

{{APIRef("DOM")}}{{ Deprecated_header() }}

+ +

这个方法用来在早期版本的Mozilla中清除整个指定文档。

+ +

在最近版本的基于Mozilla的应用以及Internet Explorer和Netscape 4中这个方法什么也不做

+ +

语法

+ +
document.clear()
+
+ +

规范

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