有没有JavaScript MVC(微)框架? [英] Is there a JavaScript MVC (micro-)framework?
本文介绍了有没有JavaScript MVC(微)框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有任何客户端JavaScript MVC
一个>(微)框架?我有一个相当复杂的HTML表单,它可以从MVC模式中受益。
我想象一个好的解决方案将提供以下内容:
- 当值更改时,模型和视图更新控制器(观察者模式)
- 当页面加载时从表单数据填充模型
- 在模型更改时从模型填充表单
Ajax,comet, JSONP 而所有爵士乐都是严重的过度消耗。 Backbone是一个优秀的轻量级框架。试试看:
http://backbonejs.org/
Are there any client-side JavaScript MVC (micro-)frameworks?
I have a rather complicated HTML form, and it would benefit from the MVC pattern.
I imagine a good solution would provide the following:
- Model and View update the Controller when values change (Observer pattern)
- Populate the model from the form data when the page loads
- Populate the form from the model when the model changes
Ajax, comet, JSONP and all that jazz are serious overkill.
解决方案
Backbone is a great light-weight framework. Give it a try: http://backbonejs.org/
这篇关于有没有JavaScript MVC(微)框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文