From d44f5032d0f53256b2d5aef505d6b593fd3cd158 Mon Sep 17 00:00:00 2001 From: Irvin Date: Wed, 16 Feb 2022 02:14:18 +0800 Subject: fix yari h2m dry run errors (zh-CN) --- .../global_objects/weakmap/clear/index.html | 56 ++-------------------- .../global_objects/weakmap/delete/index.html | 48 +------------------ .../global_objects/weakmap/get/index.html | 48 +------------------ .../global_objects/weakmap/has/index.html | 50 +------------------ 4 files changed, 8 insertions(+), 194 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/weakmap') diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakmap/clear/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakmap/clear/index.html index 5340ac3ee0..5344e4f3a6 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/weakmap/clear/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/weakmap/clear/index.html @@ -13,9 +13,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WeakMap/clear

clear()用来从 WeakMap对象中移除所有元素。但不再是ECMAScript和它的实现部分。

-

Warning:

+

警告:Warning:

-

WeakMap(no clear() any more).png

+

WeakMap(no clear() any more).png

语法

@@ -26,7 +26,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WeakMap/clear

使用 clear 方法

-
var wm = new WeakMap();
+
var wm = new WeakMap();
 var obj = {};
 
 wm.set(obj, "foo");
@@ -47,55 +47,7 @@ wm.has(window)  // false
 
 

浏览器兼容性

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support36{{CompatNo}} [1]11237.1
-
- -
- - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatNo}}{{CompatNo}} [1]{{CompatNo}}{{CompatNo}}8
-
- -

[1] The clear() 曾经在高于 20 版本低于 45 版本之间被支持。

+{{Compat}}

相近

diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakmap/delete/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakmap/delete/index.html index 212911cf30..f1dd0b2ddd 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/weakmap/delete/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/weakmap/delete/index.html @@ -53,53 +53,7 @@ wm.has(window); // 返回 false,因为 window 对象已经被删除了。

浏览器兼容性

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (SpiderMonkey)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}[1]{{CompatGeckoDesktop("6.0")}}11{{CompatNo}}{{CompatNo}}
-
- -
- - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (SpiderMonkey)IE MobileOpera MobileSafari Mobile
Basic support{{CompatNo}}{{CompatGeckoMobile("6.0")}}{{CompatNo}}{{CompatNo}}{{CompatNo}}
-
+{{Compat}}

相关链接

diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakmap/get/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakmap/get/index.html index 1c335a5ffc..26598a6cdf 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/weakmap/get/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/weakmap/get/index.html @@ -57,53 +57,7 @@ wm.get("baz"); // 返回 undefined.

浏览器兼容性

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support36{{CompatGeckoDesktop("6.0")}}11237.1
-
- -
- - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatNo}}{{CompatGeckoMobile("6.0")}}{{CompatNo}}{{CompatNo}}8
-
+{{Compat}}

Firefox 中的注意事项

diff --git a/files/zh-cn/web/javascript/reference/global_objects/weakmap/has/index.html b/files/zh-cn/web/javascript/reference/global_objects/weakmap/has/index.html index 209fd757d0..80e653a911 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/weakmap/has/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/weakmap/has/index.html @@ -58,55 +58,9 @@ wm.has("baz"); // returns false -

浏览器兼容

+

浏览器兼容性

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support36{{CompatGeckoDesktop("6.0")}}11237.1
-
- -
- - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatNo}}{{CompatGeckoMobile("6.0")}}{{CompatNo}}{{CompatNo}}8
-
+{{Compat}}

Firefox-特有说明

-- cgit v1.2.3-54-g00ecf