Skip to content

Commit 5e2e12d

Browse files
authored
Merge pull request ruanyf#338 from MrErHu/gh-pages
修复类的静态属性中实例代码的错误
2 parents 002618a + 9f4ca94 commit 5e2e12d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,7 @@ class MyClass {
13441344
static myStaticProp = 42;
13451345

13461346
constructor() {
1347-
console.log(MyClass.myProp); // 42
1347+
console.log(MyClass.myStaticProp); // 42
13481348
}
13491349
}
13501350
```

0 commit comments

Comments
 (0)