MVC
来源:互联网 发布:windows安装ftp服务器 编辑:程序博客网 时间:2024/06/03 13:24
In addition to dividing the application into three kinds of components, the model–view–controller design defines the interactions between them.
- A controller can send commands to the model to update the model's state (e.g., editing a document). It can also send commands to its associated view to change the view's presentation of the model (e.g., by scrolling through a document).
- A model notifies its associated views and controllers when there has been a change in its state. This notification allows the views to produce updated output, and the controllers to change the available set of commands. In some cases an MVC implementation might instead be "passive," so that other components must poll the model for updates rather than being notified.
- A view requests information from the model that it needs for generating an output representation to the user.
Although originally developed for desktop computing, model–view–controller has been widely adopted as an architecture for World Wide Web applications in major programming languages. Several commercial and noncommercial application frameworks have been created that enforce the pattern. These frameworks vary in their interpretations, mainly in the way that the MVC responsibilities are divided between the client and server.
Early web MVC frameworks took a thin client approach that placed almost the entire model, view and controller logic on the server. In this approach, the client sends either hyperlink requests or form input to the controller and then receives a complete and updated web page (or other document) from the view; the model exists entirely on the server.As client technologies have matured, frameworks such as JavaScriptMVC and Backbone have been created that allow the MVC components to execute partly on the client (see also AJAX).
- MVC
- mvc
- MVC
- mvc
- MVC
- MVC
- mvc
- MVC
- MVC
- MVC
- MVC
- MVC
- MVC
- MVC
- MVC
- mvc
- MVC
- MVC
- Android:Layout_weight的深刻理解
- CentOS6.5编译安装CodeBlocks13.12
- HDU 1210 (数学)
- 文件读取与输入
- MySQL concat函数的使用
- MVC
- myqldump 相关命令及效率
- Jquery_css实现图片轮播小例子
- C#中Socket.Receive 方法 (Byte[], Int32, SocketFlags)的SocketFlags的含义
- linux、mac上用expect脚本实现脚本自动输入密码
- Oracle11g数据库导入Oracle10g数据库 oracle常用数据导入导出命令
- C++基本定义
- 第15周项目一(1)工资数据的输入
- ubuntu10.04 Desktop 安装scp