具有被动视图的 MVP 模式中的用户确认
在基于 Web 的 MVP 模式实现中继续执行任务之前,您将如何处理调用用户确认对话框?它必须在两者之间进行回发,并且确认将超出调用它的演示者函数的范围。我更愿意保留纯粹的 MVP 实现,但这可能吗?
How would you handle calling a user confirmation dialog before continuing with a task in a web-based MVP pattern implementation? It'll have to do a postback in between and the confirmation would go out of the scope of the presenter function that called it. I'd prefer to keep to a pure MVP implementation but is it even possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(1)
您无法在单个服务器端函数中实现此逻辑。我相信解决此问题的标准方法是
或
You can't implement this logic in one single server-side function. I believe the standard approach to tackle this is either to
or