From c40612041809fe289aba58aefa170bbe784aba1f Mon Sep 17 00:00:00 2001 From: t7yang Date: Mon, 10 Jan 2022 08:38:07 +0800 Subject: remove name attribute for zh-CN --- .../javascript/reference/global_objects/weakmap/delete/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/weakmap') 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 b172fc0698..212911cf30 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 @@ -5,11 +5,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WeakMap/delete ---
{{JSRef("Global_Objects", "WeakMap")}}
-

概述

+

概述

delete() 方法可以从一个 WeakMap 对象中删除指定的元素。

-

语法

+

语法

wm.delete(key);
@@ -24,7 +24,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/WeakMap/delete

如果成功删除,返回 true,否则返回 false

-

示例

+

示例

var wm = new WeakMap();
 wm.set(window, "foo");
-- 
cgit v1.2.3-54-g00ecf