C# KnockOut.js 与 Asp.net mvc
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16832600/
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
KnockOut.js With Asp.net mvc
提问by Ancient
Just started learning the new asp.net mvc4 SPA template , noticed that knockout is being used , so give me reference to any book / Video which describes asp.net mvc with knockout.js from scratch .
刚刚开始学习新的 asp.net mvc4 SPA 模板,注意到正在使用淘汰赛,所以请给我参考任何描述 asp.net mvc 与淘汰赛.js 的书籍/视频。
采纳答案by connectedsoftware
A really good start is to work through the tutorials step by step on the knockoutjs.comsite, the tutorials are brilliantly put together and there are live examples which help to demonstrate "real world" scenarios.
一个很好的开始是在knockoutjs.com网站上一步一步地学习教程,这些教程很好地放在一起,并且有现场示例可以帮助演示“真实世界”场景。
Once you are comfortable with the knockout constructs this articlegives a basic but good illustration of integrating pure knockout with MVC controllers, models and views.
一旦您对淘汰赛结构感到满意,本文将提供一个基本但很好的说明,说明将纯淘汰赛与 MVC 控制器、模型和视图集成。
An alternative approach is to use knockoutMVCalthough it is important to point out that this is an extensionof knockout.js and is definitely not required to get knockout working really well in an MVC project (I don't use this but thought I would include for completeness).
另一种方法是使用knockoutMVC,尽管重要的是要指出这是knockout.js的扩展并且绝对不需要在MVC项目中让knockout工作得很好(我不使用它,但我想我会包括为了完整性)。
Finally if you want to get more advanced, this SPA guideis a very useful 4-part tutorial on creating a Single Page Application with Knockout and MVC.
最后,如果您想要更高级,这个SPA 指南是一个非常有用的 4 部分教程,关于使用 Knockout 和 MVC 创建单页应用程序。

