MVC stands for model-view-controller. MVC is a pattern for developing applications that are well architected and easy to maintain. MVC-based applications contain:
- Controllers: Classes that handle incoming requests to the application, retrieve model data, and then specify view templates that return a response to the client.
- Models: Classes that represent the data of the application and that use validation logic to enforce business rules for that data.
- Views: Template files that your application uses to dynamically generate HTML responses.
本文介绍了MVC(模型-视图-控制器)架构的基本概念及其组成部分:控制器负责处理客户端请求并调用模型数据;模型用于存储应用程序的数据及业务逻辑;视图则负责生成动态的HTML响应。

被折叠的 条评论
为什么被折叠?



