MVC description
2015-08-16 15:49
281 查看
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 stores data that is retrieved to the controller and displayed in the view. Whenever there is a change to the data it is updated by the controller.
A view requests information from the controller. The controller fetches it from the model and passes it to the view that the view uses to generate an output representation to the user.
A model stores data that is retrieved to the controller and displayed in the view. Whenever there is a change to the data it is updated by the controller.
A view requests information from the controller. The controller fetches it from the model and passes it to the view that the view uses to generate an output representation to the user.
相关文章推荐
- Html常用字体的格式化
- linux学习之路(6)
- 数据结构读书笔记3
- android应用在线完整更新
- CSS 3基础(二)——边框
- 107 Binary Tree Level Order Traversal II
- JavaScript数据类型判断--使用toString方法
- redis sort命令用法
- 浮点数的输入以及浮点数运算
- UVa 401 - Palindromes
- 【怎样在fans-rt上进行开发】1.windows 系统下 gcc 交叉编译环境搭建(cortex-m3)
- css table自动布局下<td>宽度计算
- 关于flex匿名函数和swift闭包
- ubuntu下sed命令详解
- hdu 5392 许多数的lcm的取模
- Code Forces 59A Word
- HDU 1429 BFS + 状压
- C++生成随机数:高斯/正态分布(gaussian/normal distribution)
- Rotate Image
- 剑指offer 算法(链表 树)