From 65cc6eabd71b1bceccf6fd3d3d4970c2955f3784 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Thu, 10 Dec 2020 08:37:18 -0500 Subject: dump 2020-12-10 --- .../zh-cn/web/javascript/guide/expressions_and_operators/index.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'files/zh-cn/web/javascript/guide') diff --git a/files/zh-cn/web/javascript/guide/expressions_and_operators/index.html b/files/zh-cn/web/javascript/guide/expressions_and_operators/index.html index b7e809269d..256961d4e6 100644 --- a/files/zh-cn/web/javascript/guide/expressions_and_operators/index.html +++ b/files/zh-cn/web/javascript/guide/expressions_and_operators/index.html @@ -594,10 +594,9 @@ for (var i = 0, j = 9; i <= j; i++, j--)

delete

-

delete操作符,删除一个对象或一个对象的属性或者一个数组中某一个键值。语法如下:

+

delete操作符,删除一个对象的属性或者一个数组中某一个键值。语法如下:

-
delete objectName;
-delete objectName.property;
+
delete objectName.property;
 delete objectName[index];
 delete property; // legal only within a with statement
 
-- cgit v1.2.3-54-g00ecf