1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-26 03:32:20 +00:00

Merge pull request #215 from NumerHero/gh-pages

问题修改
This commit is contained in:
Ruan YiFeng 2016-06-02 00:44:17 -05:00
commit b299d21641

View File

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