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

每日一题(2019-10-29) | 我是瘦子 #10

Open
shizhonghai opened this issue Dec 12, 2019 · 0 comments
Open

每日一题(2019-10-29) | 我是瘦子 #10

shizhonghai opened this issue Dec 12, 2019 · 0 comments

Comments

@shizhonghai
Copy link
Owner

https://shizhonghai.github.io/2019/12/12/Daily-Interview-Question-2/

第 0002 题:Vue 中的 computed 和 watch 的区别在哪里computed:计算属性 计算属性是由 data 中的已知值,得到的一个新值。 这个新值只会根据已知值的变化而变化,其他不相关的数据的变化不会影响该新值。 计算属性不在 data 中,计算属性新值的相关已知值在 data 中。 别人变化影响我自己。 watch:监听数据的变化 监听data中数据的变化。 监听的数

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

No branches or pull requests

1 participant