Skip to content

Commit d6d9ab4

Browse files
committed
Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages
2 parents 9e97452 + 693fb27 commit d6d9ab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ p1.__proto__ === p2.__proto__
266266
//true
267267
```
268268

269-
上面代码中,`p1``p2`都是Point的实例,它们的原型都是Point,所以`__proto__`属性是相等的。
269+
上面代码中,`p1``p2`都是Point的实例,它们的原型都是Point.prototype,所以`__proto__`属性是相等的。
270270

271271
这也意味着,可以通过实例的`__proto__`属性为Class添加方法。
272272

0 commit comments

Comments
 (0)