1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-27 20:32:21 +00:00
This commit is contained in:
Viky-zhang 2016-11-05 12:18:47 +08:00 committed by GitHub
parent d50aa29a21
commit 56687e0dcb

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 {