From 9a110dee28ae2ef12ee014b98fda6bae6ee48edb Mon Sep 17 00:00:00 2001 From: YujiSoftware Date: Wed, 2 Mar 2022 20:22:51 +0900 Subject: Migrate to Compat macro (zh-cn) --- files/zh-cn/web/api/closeevent/index.html | 71 +------------------------------ 1 file changed, 1 insertion(+), 70 deletions(-) (limited to 'files/zh-cn/web/api/closeevent') diff --git a/files/zh-cn/web/api/closeevent/index.html b/files/zh-cn/web/api/closeevent/index.html index 1c9341ce1e..34af62dfa3 100644 --- a/files/zh-cn/web/api/closeevent/index.html +++ b/files/zh-cn/web/api/closeevent/index.html @@ -160,76 +160,7 @@ translation_of: Web/API/CloseEvent

浏览器兼容性

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatUnknown}}{{CompatGeckoDesktop("8.0")}}[1]
- {{CompatGeckoDesktop("12.0")}}[2]
10{{CompatUnknown}}{{CompatUnknown}}
initCloseEvent() {{Non-standard_inline}}{{CompatNo}}{{CompatGeckoDesktop("8.0")}}
- {{CompatNo}} 41.0
{{CompatNo}}{{CompatNo}}{{CompatNo}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatUnknown}}{{CompatGeckoMobile("8.0")}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
initCloseEvent() {{Non-standard_inline}}{{CompatNo}}{{CompatGeckoMobile("8.0")}}
- {{CompatNo}} 41.0
{{CompatNo}}{{CompatNo}}{{CompatNo}}
-
- -

[1] Gecko 8.0 {{geckoRelease("8.0")}} 以前, Gecko ?简单地发送 {{event("close")}} ?事件给 WebSocket ?监听器. ?对 CloseEvent ?的支持是在 Gecko 8.0 实现的.

- -

[2] Gecko 12.0 {{geckoRelease("12.0")}} 以前, Gecko 当通道由于未知错误关闭, 或是错误原因不在标准之内时会上报 CLOSE_NORMAL 状态码. ?现在则使用 CLOSE_GOING_AWAY 代替.

+{{Compat("api.CloseEvent")}}

参考

-- cgit v1.2.3-54-g00ecf