gpt4 book ai didi

c# - MVC 和 MVP 监督 Controller 是否相同?

转载 作者:太空狗 更新时间:2023-10-29 21:51:42 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
What are MVP and MVC and what is the difference?

我在网站上阅读了以下对 MVC 的描述:

In this case of MVC the Controller simply builds the Model and passes it off to the View for rendering. No stateful interplay between the View and Controller, just a “hey, here’s the Model, see you later” from the Controller to the View.

我已阅读以下有关 MVP - 监督 Controller 的内容

Supervising Controller: The Presenter handles user gestures. The View binds to the Model directly through data binding. In this case it's the Presenter's job to pass off the Model to the View so that it can bind to it. The Presenter will also contain logic for gestures like pressing a button, navigation, etc.

从上面的描述中,我觉得 MVC 和 MVP 背后的底层逻辑 - 监督 Controller 是相同的。

我的理解正确吗?

提前致谢

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com