1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

Merge pull request #274 from Viky-zhang/patch-1

即->既
This commit is contained in:
Ruan YiFeng 2016-11-05 01:47:46 -05:00 committed by GitHub
commit 13996a68d8

View File

@ -730,7 +730,7 @@ Object.getPrototypeOf(ColorPoint) === Point
1作为函数调用时`super(...args)``super`代表父类的构造函数。
2作为对象调用时`super.prop``super.method()``super`代表父类。注意,此时`super`可以引用父类实例的属性和方法,也可以引用父类的静态方法。
2作为对象调用时`super.prop``super.method()``super`代表父类。注意,此时`super`可以引用父类实例的属性和方法,也可以引用父类的静态方法。
```javascript
class B extends A {