Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class是什么? #35

Open
zhouzhongyuan opened this issue Mar 29, 2017 · 0 comments
Open

Class是什么? #35

zhouzhongyuan opened this issue Mar 29, 2017 · 0 comments

Comments

@zhouzhongyuan
Copy link
Owner

zhouzhongyuan commented Mar 29, 2017

Hoisting

  • function形式 ✅
  • class形式 ❌

constructor

最多一个,多个会报错

static

  • 只能被“类”调用
  • 不能被“类”的“实例”调用
  • 经常被用来创建util函数

this

  • class(默认)使用strict模式。

extends

species(种类)?

// TODO

super

  • 调用父类

Mix-ins

// TODO

更多阅读

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

No branches or pull requests

1 participant