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

{{APIRef("DOM")}}

+ +

navigator.onLine 属性更改并变为 false时,在 body或冒泡到body上的{{event("offline")}}事件被触发。

-- cgit v1.2.3-54-g00ecf