本文介绍了关于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和数据绑定的问题
发布评论