Skip to content

Commit

Permalink
docs: update docs/React/super()_super(props).md
Browse files Browse the repository at this point in the history
  • Loading branch information
qiufeihong2018 committed May 8, 2024
1 parent efc7aad commit 897df65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/React/super()_super(props).md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class sup {

class sub extends sup {
constructor(name, age) {
super(name); // super代表的事父类的构造函数
super(name); // super代表的是父类的构造函数
this.age = age;
}

Expand Down Expand Up @@ -49,7 +49,7 @@ jack.printAge(); //输出 : 20
class sub extends sup {
constructor(name, age) {
this.age = age;
super(name); // super代表的事父类的构造函数
super(name); // super代表的是父类的构造函数
}
}
```
Expand Down

0 comments on commit 897df65

Please sign in to comment.