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

Vue 中的 computed 和 watch 的区别在哪里 #73

Closed
murphywuwu opened this issue Mar 1, 2021 · 1 comment
Closed

Vue 中的 computed 和 watch 的区别在哪里 #73

murphywuwu opened this issue Mar 1, 2021 · 1 comment
Assignees
Labels

Comments

@murphywuwu
Copy link
Owner

Advanced-Frontend/Daily-Interview-Question#304

@murphywuwu murphywuwu added the vue label Mar 1, 2021
@murphywuwu murphywuwu self-assigned this Mar 1, 2021
@murphywuwu
Copy link
Owner Author

  • computed可监听多个数据的变化。
  • watch只可监听单个数据的变化。
  • computed适用于多个数据影响单个数据的场景
  • watch适用于单个数据影响多个数据的场景

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant