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
+1 -1
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 {