aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/notifications_api/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/api/notifications_api/index.html')
-rw-r--r--files/zh-cn/web/api/notifications_api/index.html110
1 files changed, 1 insertions, 109 deletions
diff --git a/files/zh-cn/web/api/notifications_api/index.html b/files/zh-cn/web/api/notifications_api/index.html
index f6e9a1bf7f..8a46465d0f 100644
--- a/files/zh-cn/web/api/notifications_api/index.html
+++ b/files/zh-cn/web/api/notifications_api/index.html
@@ -71,115 +71,7 @@ translation_of: Web/API/Notifications_API
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>5{{property_prefix("webkit")}}<sup>[1]</sup><br>
- 22</td>
- <td>{{CompatGeckoDesktop("2.0")}}{{property_prefix("moz")}}<sup>[2]</sup><br>
- {{CompatGeckoDesktop("22.0")}}</td>
- <td>{{CompatNo}}</td>
- <td>25</td>
- <td>6<sup>[3]</sup></td>
- </tr>
- <tr>
- <td>Available in workers</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoDesktop("41.0")}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td>Service worker additions</td>
- <td>
- <p>{{CompatChrome(42.0)}}</p>
- </td>
- <td>{{CompatGeckoDesktop("42.0")}}<sup>[4]</sup></td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Android Webview</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Firefox OS</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- <th>Chrome for Android</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>
- <p>{{CompatVersionUnknown}}</p>
- </td>
- <td>{{CompatGeckoMobile(2.0)}}{{property_prefix("moz")}}<sup>[2]</sup><br>
- {{CompatGeckoMobile(22.0)}}</td>
- <td>1.0.1{{property_prefix("moz")}}<sup>[2]</sup><br>
- 1.2</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>
- <p>{{CompatVersionUnknown}}</p>
- </td>
- </tr>
- <tr>
- <td>Available in workers</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile(41.0)}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- <tr>
- <td>Service worker additions</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile(42.0)}}<sup>[4]</sup></td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatChrome(42.0)}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] 在 Chrome 22 之前, 通知接口遵守一个旧版本的提案(an <a href="http://www.chromium.org/developers/design-documents/desktop-notifications/api-specification">old prefixed version of the specification</a> )使用一个包含前缀符的{{domxref("window.navigator.webkitNotifications","navigator.webkitNotifications")}} 对象来实例化一个通知对象。 在 Chrome 32之前, {{domxref("Notification.permission")}}属性不支持。</p>
-
-<p>[2] 在 Firefox 22 (Firefox OS &lt;1.2)之前,通知对象的实例化需要使用{{domxref("window.navigator.mozNotification", "navigator.mozNotification")}} 对象的 <code style="font-style: normal; font-weight: normal;">createNotification()</code> 方法。另外,通知对象需要使用 <code style="font-style: normal; font-weight: normal;">show()</code> 方法来显示,并且仅支持 <code style="font-style: normal; font-weight: normal;">click</code> 和 <code style="font-style: normal; font-weight: normal;">close</code> 事件 (Nick Desaulniers 写了一个通知的兼容解决方法( a <a href="https://github.com/nickdesaulniers/fxos-irc/blob/master/js/notification.js">Notification shim</a> )来覆盖旧浏览器和现代浏览器。)</p>
-
-<p>[3] Safari 从Safari 6开始支持通知,但只在 Mac OSX 10.8+ (Mountain Lion)上。</p>
-
-<p>[4] Firefox 42 has shipped with web notifications from Service Workers disabled.</p>
+{{Compat("api.Notification")}}
<h2 id="Firefox_OS_permissions">Firefox OS permissions</h2>