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中,子组件为何不可以修改父组件传递的Props? #38

Open
GGXXMM opened this issue Aug 12, 2019 · 0 comments
Open

Vue中,子组件为何不可以修改父组件传递的Props? #38

GGXXMM opened this issue Aug 12, 2019 · 0 comments
Labels

Comments

@GGXXMM
Copy link
Owner

GGXXMM commented Aug 12, 2019

为了保证数据的单向流动,便于对数据追踪,避免数据混乱,所以子组件不能修改父组件传递的Props。

官网有详细的信息 prop

@GGXXMM GGXXMM added the vue label Dec 7, 2021
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