fix typos

This commit is contained in:
qianguyihao
2020-08-24 10:14:32 +08:00
parent 5ae9416e6f
commit fc6cedde18
11 changed files with 16 additions and 16 deletions

View File

@@ -120,7 +120,7 @@
![](http://img.smyhvae.com/20180307_1109.png)
重要上方代码中最重要的那行每个函数都有`prototype`属性于是构造函数也有这个属性这个属性是一个对象现在**我们把`Parent`的实例赋值给了`Child``prototye`**从而实现**继承**此时`Child`构造函数`Parent`的实例`Child`的实例构成一个三角关系于是
重要上方代码中最重要的那行每个函数都有`prototype`属性于是构造函数也有这个属性这个属性是一个对象现在**我们把`Parent`的实例赋值给了`Child``prototype`**从而实现**继承**此时`Child`构造函数`Parent`的实例`Child`的实例构成一个三角关系于是
- `new Child.__proto__ === new Parent()`的结果为true