GUI 应用构架

Tags
codeapp
Created
Oct 24, 2015 4:56 PM

前端构架 MVC 模式(Model-View-Controller)

https://github.com/livoras/blog/issues/11

http://www.cnblogs.com/yexiaochai/p/4840512.html

image

实线:方法调用;虚线:事件通知

  • 控制器Controller)- 负责转发请求,对请求进行处理。用户操作了“视图”,控制器“捕获事件”更新模型,模型更新完毕更新视图
  • 视图View) - 在前端中可以简单理解为 HTML+CSS。
  • 数据Model) - 对客观事物的一种抽象。

组件化开发:http://www.cnblogs.com/yexiaochai/p/4876099.html

MVP(Presenter) 调用关系

image

MVVM 的调用关系

image
SuperMade with Super