75

前端MVC、MVVM的简单实现

 6 years ago
source link: https://juejin.im/post/5a8d5621f265da4e732ed872
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
MVC MVC是一种设计模式,它将应用划分为3个部分:数据(模型)、展示层(视图)和用户交互层。结合一下下图,更能理解三者之间的关系。 换句话说,一个事件的发生是这样的过程 用户和应用交互 控制器的事件处理器被触发 控制器从模型中请求数据,并将其交给视图

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK