mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 10:22:23 +00:00
docs(class-extends): fix typo
This commit is contained in:
parent
a623e19fb9
commit
fc58b0c150
@ -183,7 +183,7 @@ B.hello() // hello world
|
|||||||
|
|
||||||
上面代码中,`hello()`是`A`类的静态方法,`B`继承`A`,也继承了`A`的静态方法。
|
上面代码中,`hello()`是`A`类的静态方法,`B`继承`A`,也继承了`A`的静态方法。
|
||||||
|
|
||||||
注意,静态属性是通过软拷贝实现继承的。
|
注意,静态属性是通过浅拷贝实现继承的。
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
class A { static foo = 100; }
|
class A { static foo = 100; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user