mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
Update class-extends.md
clss => class
This commit is contained in:
parent
7fa7ee1af3
commit
e064886347
@ -136,7 +136,7 @@ B.hello() // hello world
|
||||
|
||||
上面代码中,`hello()`是`A`类的静态方法,`B`继承`A`,也继承了`A`的静态方法。
|
||||
|
||||
子类无法继承父类的私有属性,或者说,私有属性只能在定义它的 clss 里面使用。
|
||||
子类无法继承父类的私有属性,或者说,私有属性只能在定义它的 class 里面使用。
|
||||
|
||||
```javascript
|
||||
class Foo {
|
||||
|
Loading…
x
Reference in New Issue
Block a user