We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 825ec34 + 6c4f5ce commit 8f474b8Copy full SHA for 8f474b8
doc/zh/object/forinloop.md
@@ -30,7 +30,7 @@
30
如果不使用 `hasOwnProperty`,则这段代码在原生对象原型(比如 `Object.prototype`)被扩展时可能会出错。
31
32
一个广泛使用的类库 [Prototype][1] 就扩展了原生的 JavaScript 对象。
33
-因此,但这个类库被包含在页面中时,不使用 `hasOwnProperty` 过滤的 `for in` 循环难免会出问题。
+因此,当这个类库被包含在页面中时,不使用 `hasOwnProperty` 过滤的 `for in` 循环难免会出问题。
34
35
###总结
36
doc/zh/object/hasownproperty.md
@@ -35,7 +35,7 @@ JavaScript **不会**保护 `hasOwnProperty` 被非法占用,因此如果一
foo.hasOwnProperty('bar'); // 总是返回 false
37
38
- // 使用其它对象的 hasOwnProperty,并将其上下为设置为foo
+ // 使用其它对象的 hasOwnProperty,并将其上下文设置为foo
39
({}).hasOwnProperty.call(foo, 'bar'); // true
40
41
###结论
0 commit comments