Notes of MVC


Model 模型:信息(数据)和操纵数据的业务规则

View 视图:元素的用户接口(比如文本框、复选框等等)

Controller 控制器:管理『Model模型』和『View视图』之间的交互细节(比如键盘事件和鼠标事件等等)。

quot from wikipedia

Model-view-controller (MVC) is an architectural pattern used in software engineering. Successful use of the pattern isolates business logic from user interface considerations, resulting in an application where it is easier to modify either the visual appearance of the application or the underlying business rules without affecting the other. In MVC, the model represents the information (the data) of the application and the business rules used to manipulate the data, the view corresponds to elements of the user interface such as text, checkbox items, and so forth, and the controller manages details involving the communication to the model of user actions such as keystrokes and mouse movements.