javascript 如何在jquery中实现MVC
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4112274/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
how to implement MVC in jquery
提问by kobe
Any references how to implement mvc in jquery.
任何参考如何在 jquery 中实现 mvc。
thanks
谢谢
回答by Ken Franqueiro
There are already a few MVC frameworks out there that are designed to work well with jQuery, maybe they're worth a look to you. Some suggestions:
已经有一些 MVC 框架可以很好地与 jQuery 配合使用,也许它们值得您一看。一些建议:
http://documentcloud.github.com/backbone/
http://documentcloud.github.com/backbone/
[edit] sorry to sound a tiny bit repetitive of the first answer - I guess SO didn't pop its usual "someone answered this while you weren't looking!" warning.
[编辑] 抱歉,第一个答案听起来有点重复 - 我想 SO 并没有弹出它通常的“有人在你没看的时候回答了这个!” 警告。
回答by generalhenry
you could try backbone: https://backbonejs.org/
你可以试试主干:https: //backbonejs.org/
Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
Backbone.js 通过提供具有键值绑定和自定义事件的模型、具有可枚举函数的丰富 API 的集合、具有声明性事件处理的视图以及通过 RESTful JSON 接口将所有这些连接到您现有的 API 来为 Web 应用程序提供结构。
回答by adiK
ASP.NET MVC 3 supports Multilingual. You can easily use jQuery with ASP.NET MVC.
ASP.NET MVC 3 支持多语言。您可以轻松地将 jQuery 与 ASP.NET MVC 结合使用。
Gives more dynamic look and feel to it, specially for pop up boxes, user input, routing to controller
赋予它更动态的外观和感觉,特别是弹出框、用户输入、路由到控制器
Refer to this link
参考这个链接
jQuery jQuery site
jQuery jQuery 站点

