摘要
模型-视图-控制器(MVC)模式是一个框架级的设计模式,该模式将软件设计中的关注点分离开来,从而使程序更有弹性。随着软硬件的发展,基于MVC模式演化出了一些相关模式。模型-视图-表示器(MVP)模式就是由MVC演变而来。文章将首先介绍了可能的MVP模式的实现方法,然后讨论了该模式的应用,以及所带来的益处。
Applying the Model-View-Controller (MVC) mode shows that designing applications with different concerns makes programs more flexible. Several variations of it appeared over the years, and one of those is the Model-View-Presenter (MVP). In this article, one possible implementation of the MVP mode, its application and its benefits will be introduced.
出处
《计算机时代》
2012年第4期37-38,40,共3页
Computer Era