Skip to content

Conversation

@MrErHu
Copy link
Contributor

@MrErHu MrErHu commented Feb 23, 2017

class MyClass {
static myStaticProp = 42;

constructor() {
console.log(MyClass.myProp); // 42
}
}
修改为:
class MyClass {
static myStaticProp = 42;

constructor() {
console.log(MyClass.myStaticProp); // 42
}
}

class MyClass {
  static myStaticProp = 42;

  constructor() {
    console.log(MyClass.myProp); // 42
  }
}
修改为:
class MyClass {
  static myStaticProp = 42;

  constructor() {
    console.log(MyClass.myStaticProp); // 42
  }
}
@ruanyf
Copy link
Owner

ruanyf commented Feb 23, 2017

谢谢。

@ruanyf ruanyf merged commit 5e2e12d into ruanyf:gh-pages Feb 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants