mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
问题修改
This commit is contained in:
parent
1e1ea908ff
commit
251552555a
@ -905,8 +905,7 @@ Foo.prop // 1
|
||||
目前,只有这种写法可行,因为ES6明确规定,Class内部只有静态方法,没有静态属性。
|
||||
|
||||
```javascript
|
||||
// 以下两种写法都无效,
|
||||
// 但不会报错
|
||||
// 以下两种写法都无效
|
||||
class Foo {
|
||||
// 写法一
|
||||
prop: 2
|
||||
|
Loading…
x
Reference in New Issue
Block a user