KnockOut.js与Asp.net mvc

时间:2022-12-03 07:49:32

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模板,注意到正在使用淘汰赛,所以请给我参考任何书籍/视频,它从头开始描述带有knockout.js的asp.net mvc。

1 个解决方案

#1


37  

A really good start is to work through the tutorials step by step on the knockoutjs.com site, 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 article gives a basic but good illustration of integrating pure knockout with MVC controllers, models and views.

一旦你对淘汰结构感到满意,本文给出了将纯粹淘汰赛与MVC控制器,模型和视图集成的基本但很好的例证。

An alternative approach is to use knockoutMVC although it is important to point out that this is an extension of 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项目中使得淘汰赛工作得非常好(我不使用它但是我想包括完整性)。

Finally if you want to get more advanced, this SPA guide is a very useful 4-part tutorial on creating a Single Page Application with Knockout and MVC.

最后,如果您想获得更高级的功能,本SPA指南是一个非常有用的4部分教程,介绍如何使用Knockout和MVC创建单页应用程序。

#1


37  

A really good start is to work through the tutorials step by step on the knockoutjs.com site, 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 article gives a basic but good illustration of integrating pure knockout with MVC controllers, models and views.

一旦你对淘汰结构感到满意,本文给出了将纯粹淘汰赛与MVC控制器,模型和视图集成的基本但很好的例证。

An alternative approach is to use knockoutMVC although it is important to point out that this is an extension of 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项目中使得淘汰赛工作得非常好(我不使用它但是我想包括完整性)。

Finally if you want to get more advanced, this SPA guide is a very useful 4-part tutorial on creating a Single Page Application with Knockout and MVC.

最后,如果您想获得更高级的功能,本SPA指南是一个非常有用的4部分教程,介绍如何使用Knockout和MVC创建单页应用程序。