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

Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages

This commit is contained in:
ruanyf 2016-11-06 11:06:06 +08:00
commit ded5622c5d

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 {