1 、MVC 分层职责和处理流程

Models, which contain or represent the data that users work with. These can be simple view models, which just represent data being transferred between views and controllers; or they can be domain models, which contain the data in a business domain as well as the operations, transformations, and rules for

manipulating that data.


Views, which are used to render some part of the model as a UI.


Controllers, which process incoming requests, perform operations on the model,and select views to render to the user.



模型:包含用户要处理的数据,分为view models和domain models,业务逻辑放到这里面

视图:仅仅负责将模型展示出来

控制器:执行请求、对模型的操作并选择视图展示给用户



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值