Blogger Information
Blog 21
fans 0
comment 0
visits 21118
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
对MVC的理解
星辰大海
Original
710 people have browsed it

MVC 即 Model-View-Controller(模型-视图-控制器)。

处理流程:首先控制器接受用户的请求,调用相应的模型来进行业务处理,并返回数据给控制器。控制器调用相应的视图来显示处理的结果。并通过视图呈现给用户。

优点:专业分工、应对变化、明确职责划分和依赖关系

缺点:业务、界面、数据三者逻辑分不清;三者如何依赖;不好划分model和controller的职责


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post