Skip to content

Commit 36dab3d

Browse files
authored
Merge pull request BonsaiDen#352 from SnailSword/patch-1
把“执行”改为“指向”
2 parents d6363c5 + 8f9a8a5 commit 36dab3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/zh/object/prototype.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ other way around is a far more difficult task.)
4646
需要注意的是 `new Bar()` **不会**创造出一个新的 `Foo` 实例,而是
4747
重复使用它原型上的那个实例;因此,所有的 `Bar` 实例都会共享**相同**`value` 属性。
4848

49-
> **注意:** **不要**使用 `Bar.prototype = Foo`因为这不会执行 `Foo` 的原型,而是指向函数 `Foo`
49+
> **注意:** **不要**使用 `Bar.prototype = Foo`因为这不会指向 `Foo` 的原型,而是指向函数 `Foo`
5050
> 因此原型链将会回溯到 `Function.prototype` 而不是 `Foo.prototype`,因此 `method` 将不会在 Bar 的原型链上。
5151
5252
###属性查找

0 commit comments

Comments
 (0)