-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[vue] 说说你对MVC、MVP、MVVM模式的理解 #232
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
Comments
这篇文章整合了许多不同书和百科对 MVC, MVP, MVVM 的解释,并消除了歧义。 |
MVC:数据模型M+视图V+控制器C,V->C->M->V,数据变化直接影响视图。 |
MVC(Model-View-Controller)、MVP(Model-View-Presenter)和 MVVM(Model-View-ViewModel)是常见的软件架构模式,用于组织和管理应用程序的代码结构。它们都旨在将应用程序的不同部分分离,以实现松耦合、可维护和可扩展的代码结构。 MVCModel(模型):负责处理数据和业务逻辑。 MVP 模式:Model(模型):负责处理数据和业务逻辑。 MVVM 模式:Model(模型):负责处理数据和业务逻辑。 总结VC、MVP 和 MVVM 是用于组织应用程序代码的常见模式。它们的核心目标都是实现代码的解耦、可维护性和可测试性,但在具体的实现和应用上存在一些区别。选择适合的模式取决于项目需求和开发团队的偏好。 |
[vue] 说说你对MVC、MVP、MVVM模式的理解
The text was updated successfully, but these errors were encountered: