There are three pieces to the MVC pattern:

  • The model—The domain that your software is built around. If you were buildinga blog, your models might be post and comment. In some contexts, the term modelmight refer to a view-specific model—a representation of the domain for thespecific purpose of being displayed in the user interface.
  • The view—The visual representation of a model, given some context. It’s usuallthe resulting markup that the framework renders to the browser, such as theHTML representing the blog post.
  • The controller—The coordinator that provides the link between the view and themodel. The controller is responsible for processing input, acting upon themodel, and deciding on what actionshould be performed, such as renderinga view or redirecting to another page.Continuing the blog example, the controllermight look up the most recentcomments for a post (the model) andpass them to the view for rendering.

最新文章

  1. Android面试题(一)
  2. Razor练习3
  3. Unity Ragdoll(布娃娃系统)
  4. 一个ICMP单元
  5. Oracle的使用
  6. Jquery Table 操作
  7. 分区表,桶表,外部表,以及hive一些命令行小工具
  8. some smart
  9. ubuntu1404下Apache2.4错误日志error.log路径位置
  10. 理解js中的运算符优先级
  11. 微软的wp版remotedesktop第三方库居然用了openssl和苹果的东西
  12. Flashbuilder的bug FlashBuilder 1119: 访问可能未定义的属性 on (通过 static 类型
  13. python函数作用域LEGB
  14. C#修饰符说明
  15. [翻译] LASIImageView - 显示进度指示并异步下载图片
  16. tensorflow 之常见模块conv,bn...实现
  17. C# 多线程操作队列
  18. Beta阶段第2周/共2周 Scrum立会报告+燃尽图 14
  19. 基于.Net平台C#的微信网页版API
  20. canvas常用属性方法由浅下沉

热门文章

  1. 浅谈js设计模式之发布 — 订阅模式
  2. HDOJ题目分类
  3. ASP.Net1
  4. nginx no input file specified
  5. 009 jquery过滤选择器-----------(表单对象属性过滤选择器 与 表单选择器)
  6. 网页图表Highcharts实践教程之标签组与载入动画
  7. luogu P2757 [国家集训队]等差子序列
  8. poj 3368 rmq ***
  9. BZOJ2924 : [Poi1998]Flat broken lines
  10. Graph database_neo4j 底层存储结构分析(2)