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

小白提问 #2316

Closed
gjfei opened this issue Jul 2, 2019 · 1 comment
Closed

小白提问 #2316

gjfei opened this issue Jul 2, 2019 · 1 comment

Comments

@gjfei
Copy link

gjfei commented Jul 2, 2019

Question(提问)

这里的that=this有何用意?
TIM图片20190702173336

Steps to reproduce(问题复现步骤)

Screenshot or Gif(截图或动态图)

Link to minimal reproduction(最小可在线还原demo)

Other relevant information(格外信息)

  • Your OS:
  • Node.js version:
  • vue-element-admin version:
@mayunhai
Copy link
Contributor

大多数情况是为了修改 this 指向,不过这里不做转化也是可以的,因为里面没有用函数,或者直接改用箭头函数

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

3 participants