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 --- files/zh-cn/web/javascript/reference/operators/in/index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/operators/in/index.html') diff --git a/files/zh-cn/web/javascript/reference/operators/in/index.html b/files/zh-cn/web/javascript/reference/operators/in/index.html index c84cdadf5a..8420c0d14b 100644 --- a/files/zh-cn/web/javascript/reference/operators/in/index.html +++ b/files/zh-cn/web/javascript/reference/operators/in/index.html @@ -15,11 +15,11 @@ translation_of: Web/JavaScript/Reference/Operators/in -

语法

+

语法

prop in object
-

参数

+

参数

prop
@@ -31,7 +31,7 @@ translation_of: Web/JavaScript/Reference/Operators/in
检查它(或其原型链)是否包含具有指定名称的属性的对象。
-

描述

+

描述

下面的例子演示了一些 in 运算符的用法。

@@ -64,7 +64,7 @@ var color2 = "coral"; "length" in color2 // 报错(color2不是对象) -

对被删除或值为 undefined 的属性使用in

+

对被删除或值为 undefined 的属性使用in

如果你使用 delete 运算符删除了一个属性,则 in 运算符对所删除属性返回 false

@@ -89,7 +89,7 @@ trees[3] = undefined; 3 in trees; // 返回true -

继承属性

+

继承属性

如果一个属性是从原型链上继承来的,in 运算符也会返回 true

@@ -132,7 +132,7 @@ trees[3] = undefined;

{{Compat("javascript.operators.in")}}

-

相关链接

+

相关链接