Merge pull request #338 from MrErHu/gh-pages

修复类的静态属性中实例代码的错误
This commit is contained in:
Ruan YiFeng
2017-02-23 17:58:29 +08:00
committed by GitHub
+1 -1
View File
@@ -1344,7 +1344,7 @@ class MyClass {
static myStaticProp = 42;
constructor() {
console.log(MyClass.myProp); // 42
console.log(MyClass.myStaticProp); // 42
}
}
```