aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/javascript')
-rw-r--r--files/zh-cn/web/javascript/guide/expressions_and_operators/index.html5
1 files changed, 2 insertions, 3 deletions
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--)
<h4 id="delete" name="delete"><code>delete</code></h4>
-<p><code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete">delete</a></code>操作符,删除一个对象或一个对象的属性或者一个数组中某一个键值。语法如下:</p>
+<p><code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete">delete</a></code>操作符,删除一个对象的属性或者一个数组中某一个键值。语法如下:</p>
-<pre class="brush: js notranslate">delete objectName;
-delete objectName.property;
+<pre class="brush: js notranslate">delete objectName.property;
delete objectName[index];
delete property; // legal only within a with statement
</pre>