MVC
2017-04-06 15:51:22 0 举报
MVC是一种设计模式,它将应用程序分成三个互相交互的部分:模型、视图和控制器。模型表示应用程序的核心功能和数据;视图是用户看到并与之交互的界面;控制器处理用户的输入并更新模型和视图。这种设计模式使得应用程序的开发和维护更加容易,因为每个部分都有明确的职责并且可以独立地进行修改。MVC还提供了一种可重用的架构,使得开发人员可以在不同的应用程序中重复使用相同的代码。总之,MVC是一种有效的软件开发方法,可以帮助开发人员创建更加健壮、易于维护和可扩展的应用程序。
作者其他创作
大纲/内容
User
Change
ModelResponds to status queriesEncapsulate application stateDeals with business logicNotifies views of update
Show to
Update
Database
ViewDisplay model dataAccept the user requestTransfers the user input and request to the controller
Input
ControllerCalls the model to respond to user requestsSelects view to display the response results
0 条评论
下一页