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

箭头函数和普通函数的区别 #47

Open
lovelmh13 opened this issue Aug 22, 2020 · 0 comments
Open

箭头函数和普通函数的区别 #47

lovelmh13 opened this issue Aug 22, 2020 · 0 comments

Comments

@lovelmh13
Copy link
Owner

  1. this指向,箭头函数的this不绑定,会捕获所在上下文的this,作为自己的this
  2. 相当于匿名函数,不能被new,不能作为构造函数
  3. 不绑定arguments,但是可以使用rest参数
  4. call apply bind不起作用
  5. 没有原型prototype
  6. 不能当作generator函数
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