mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-28 21:32:20 +00:00
docs(class): edit class/super
This commit is contained in:
parent
1160713159
commit
4a52856283
@ -887,7 +887,7 @@ class A {}
|
|||||||
class B extends A {
|
class B extends A {
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
console.log(super.valueOf()); // B{}
|
console.log(super.valueOf() instanceof B); // true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user