1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

问题修改

This commit is contained in:
Owen 2016-06-01 21:12:39 +08:00
parent 1e1ea908ff
commit 251552555a

View File

@ -905,8 +905,7 @@ Foo.prop // 1
目前只有这种写法可行因为ES6明确规定Class内部只有静态方法没有静态属性。
```javascript
// 以下两种写法都无效,
// 但不会报错
// 以下两种写法都无效
class Foo {
// 写法一
prop: 2