Skip to content

Commit

Permalink
docs(class-extends): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Dec 30, 2023
1 parent a623e19 commit fc58b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/class-extends.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ B.hello() // hello world

上面代码中,`hello()``A`类的静态方法,`B`继承`A`,也继承了`A`的静态方法。

注意,静态属性是通过软拷贝实现继承的
注意,静态属性是通过浅拷贝实现继承的

```javascript
class A { static foo = 100; }
Expand Down

0 comments on commit fc58b0c

Please sign in to comment.