mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
fix: typing error
This commit is contained in:
parent
40256f2f5c
commit
ae011d17ae
@ -169,7 +169,7 @@ class B extends A {
|
||||
}
|
||||
```
|
||||
|
||||
上面代码中,`super()`用在`B`类的`m`方法之中,就会造成句法错误。
|
||||
上面代码中,`super()`用在`B`类的`m`方法之中,就会造成语法错误。
|
||||
|
||||
第二种情况,`super`作为对象时,在普通方法中,指向父类的原型对象;在静态方法中,指向父类。
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user