关于MVC和数据绑定的问题

编程入门 行业动态 更新时间:2024-10-28 00:22:12
本文介绍了关于MVC和数据绑定的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好 我正在尝试在我的应用程序中实现mvc模式. 我的问题是当我考虑在我的应用程序中使用数据绑定时.如果视图可以从模型中获取并设置数据,则该模式没有执行应做的事情. 我的问题:我可以做一种方法绑定吗?并让控制类处理数据? mvc模式如何适合数据绑定? 感谢所有

hi alli'm trying to implement an mvc pattern in my app.my problem is when i think about using data binding in my app. if the view can get and set the data from the model then the pattern is not doing what it should.my question:can i do one way binding? and let the controler class manipulate the data?how does mvc pattern fits with data binding?thanks all

推荐答案

大家好. 我正在尝试在我的应用程序中实现mvc模式.当我考虑使用数据绑定时,我的问题就开始了. 如果视图可以从模型中获取并设置数据(双向绑定),则该模式没有执行应做的事情. 我的问题:有没有办法使它成为单向绑定? br/>,以及一般如何实现模式和使用数据绑定?谢谢. hi all.i'm trying to implement an mvc pattern in my app.my problem begins when i think about using data binding.if the view can get and set the data from the model(two way binding)then the pattern is not doing what it should.my question: is there a way to make it one way binding?and in general how to implement the pattern and use data binding?thanks.

更多推荐

关于MVC和数据绑定的问题

本文发布于:2023-10-18 03:29:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1502951.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:绑定   数据   MVC

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!