您对Javascript MVC框架有什么建议? [英] What would you suggest for a Javascript MVC framework?
问题描述
你对Javascript MVC框架有什么建议?
What would you suggest for a Javascript MVC framework?
- SproutCore
- JavascriptMVC
- Junction
- 我没听说过的东西......
- SproutCore
- JavascriptMVC
- Junction
- Something I haven't heard of...
推荐答案
很大程度上取决于你的建设和技能。我是JavaScriptMVC的贡献者,所以我很偏颇,但我会尽量给出答案。
A lot depends on what you are building and your skill sets. I'm a JavaScriptMVC contributor, so I'm pretty biased, but I will try to give as far of an answer as possible.
SproutCore是我考虑的更多一个自上而下的框架。他们为你构建了很多chrome / UI小部件。因此,您需要花时间自定义小部件以满足您的需求。如果你的需求可以通过sproutcore的小部件轻松满足,我建议使用sproutcore。
SproutCore is what I consider more of a 'top-down' framework. They've built a lot of the chrome / UI widgets for you. So, your time is spent customizing the widgets to meet your needs. If your needs can be readily met by sproutcore's widgets, I'd suggest using sproutcore.
JavaScriptMVC是一种非常不同类型的JavaScript框架。它没有UI小部件。相反,它侧重于组织和构建JavaScript应用程序所需的低级工具。它基本上是jQuery之上的一层,包装类似于:
JavaScriptMVC is a very different type of JavaScript framework. It has no UI widgets. Instead it focuses on the lower-level tools needed to organize and build JavaScript applications. It's basically a layer above jQuery, and packages things like:
- 压缩/构建
- 测试
- 文档
- 报告错误
- 客户端视图(模板)
- 特别活动
- '缺少'DOM功能(比较比较)
- 依赖管理
- Compression / building
- Testing
- Documentation
- Error reporting
- Client side views (templates)
- Special events
- 'Missing' DOM functionality (like compare)
- Dependency management
它支持我们所说的中 - 外发展。它的控制器在组织类似jQuery的插件时特别强大。在使插件可扩展的同时,它将使用非常棒的语法为您处理事件绑定。
It supports what we call "Middle-Out" development. It's controller is especially powerful at organizing a jQuery-like plugin. It will take care of event binding for you with a pretty awesome syntax while making the plugin extendable.
因此,如果您正在构建大量自定义控件,并且知道jQuery ,将JavaScriptMVC转为旋转。
So, if you are building a lot of custom controls, and know jQuery, take JavaScriptMVC for a spin.
JavaScriptMVC实际上来自Junction,但Junction实际上还没有正在积极开发中。
JavaScriptMVC actually came from Junction, but Junction isn't really under active development.
这篇关于您对Javascript MVC框架有什么建议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!