From 9f4ca941521aa318c6c07ebea05f5791a6e3c295 Mon Sep 17 00:00:00 2001 From: Wang Lei Date: Thu, 23 Feb 2017 08:46:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=B1=BB=E7=9A=84=E9=9D=99?= =?UTF-8?q?=E6=80=81=E5=B1=9E=E6=80=A7=E4=B8=AD=E5=AE=9E=E4=BE=8B=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit class MyClass { static myStaticProp = 42; constructor() { console.log(MyClass.myProp); // 42 } } 修改为: class MyClass { static myStaticProp = 42; constructor() { console.log(MyClass.myStaticProp); // 42 } } --- docs/class.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/class.md b/docs/class.md index 3e0f249..92811f8 100644 --- a/docs/class.md +++ b/docs/class.md @@ -1344,7 +1344,7 @@ class MyClass { static myStaticProp = 42; constructor() { - console.log(MyClass.myProp); // 42 + console.log(MyClass.myStaticProp); // 42 } } ```