什么是 MVP-被动视图和 MVP-监督控制器
请用一个简单的例子来描述 MVP-Passive View 和 MVP-Supervising Controller 之间的区别。最好展示如何使用 mvp 技术(被动视图和监督控制器)绑定带有控制的数据以及如何验证输入。谢谢
Please describe with a simple example, the differences between MVP-Passive View and MVP-Supervising controller. It would be better to show how data with control is binded and input is validated using both mvp techniques - Passive View and Supervising controller. Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
区别在于视图层更新。
从 MSDN 上的 模型-视图-演示者模式 页面:
进一步阅读:
被动视图
http://martinfowler.com/eaaDev/PassiveScreen。 html
http://codebetter.com/jeremymiller/2007/05/31/build-your-own-cab-part-4-the-passive-view/
监督控制器:
< a href="http://martinfowler.com/eaaDev/SupervisingPresenter.html" rel="noreferrer">http://martinfowler.com/eaaDev/SupervisingPresenter.html
http://codebetter.com/jeremymiller/2007 /05/25/build-you-own-cab-part-3-the-supervising-controller-pattern/
The difference is in view layer updates.
From the Model-View-Presenter pattern page on MSDN:
Further reading:
Passive View:
http://martinfowler.com/eaaDev/PassiveScreen.html
http://codebetter.com/jeremymiller/2007/05/31/build-your-own-cab-part-4-the-passive-view/
Supervising controller:
http://martinfowler.com/eaaDev/SupervisingPresenter.html
http://codebetter.com/jeremymiller/2007/05/25/build-you-own-cab-part-3-the-supervising-controller-pattern/