We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
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] 说说你对单向数据流和双向数据流的理解
The text was updated successfully, but these errors were encountered:
单向数据流:所有状态的改变可记录、可跟踪,源头易追溯;所有数据只有一份,组件数据只有唯一的入口和出口,使得程序更直观更容易理解,有利于应用的可维护性;一旦数据变化,就去更新页面(data-页面),但是没有(页面-data);如果用户在页面上做了变动,那么就手动收集起来(双向是自动),合并到原有的数据中。 双向数据流:无论数据改变,或是用户操作,都能带来互相的变动,自动更新。
Sorry, something went wrong.
解释楼上有了,举例就是:父传子的props就是单向数据流,v-model就是双向数据流
基本上vue还是单向的数据流,只不过vue提供了双向绑定语法糖?
No branches or pull requests
[vue] 说说你对单向数据流和双向数据流的理解
The text was updated successfully, but these errors were encountered: