aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/notification/onclose
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/notification/onclose
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/web/api/notification/onclose')
-rw-r--r--files/zh-cn/web/api/notification/onclose/index.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/notification/onclose/index.html b/files/zh-cn/web/api/notification/onclose/index.html
new file mode 100644
index 0000000000..7c8577c85d
--- /dev/null
+++ b/files/zh-cn/web/api/notification/onclose/index.html
@@ -0,0 +1,34 @@
+---
+title: Notification.onclose
+slug: Web/API/notification/onclose
+tags:
+ - Notification.onclose
+translation_of: Web/API/Notification/onclose
+---
+<p>{{APIRef("Web Notifications")}}</p>
+
+<h2 id="Summary" name="Summary">Summary</h2>
+
+<p>{{domxref("Notification")}}  接口的 <strong>onclose</strong>属性指定一个事件侦听器来接收 {{event("close")}}事件。</p>
+
+<p>当一个{{domxref("Notification")}}关闭时,会发生这些事件。</p>
+
+<h2 id="Syntax" name="Syntax">Syntax</h2>
+
+<pre class="eval">Notification.onclose = function() { ... };
+</pre>
+
+<h2 id="Specifications">Specifications</h2>
+
+<p>This event handler is no longer listed in the <a href="https://notifications.spec.whatwg.org/">Notifications API spec</a>.</p>
+
+<h2 id="Browser_compatibility">Browser compatibility</h2>
+
+<p>{{Page("/en-US/docs/Web/API/Notification","Browser compatibility")}}</p>
+
+<h2 id="See_also">See also</h2>
+
+<ul>
+ <li>{{domxref("Notification")}}</li>
+ <li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API">Using the Notifications API</a></li>
+</ul>