KnockOut.js 与 Asp.net mvc [英] KnockOut.js With Asp.net mvc

查看:16
本文介绍了KnockOut.js 与 Asp.net mvc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚开始学习新的asp.net mvc4 SPA模板,注意到正在使用knockout,所以请给我参考任何从头开始使用knockout.js描述asp.net mvc的书籍/视频.

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 .

推荐答案

一个真正好的开始是在 knockoutjs.com 上逐步完成教程 网站上,教程巧妙地组合在一起,并且有现场示例帮助演示真实世界"场景.

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.

一旦您对敲除结构感到满意,这篇文章给出了集成纯MVC 控制器、模型和视图的淘汰赛.

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.

另一种方法是使用 knockoutMVC,尽管重要的是要指出这是淘汰赛的扩展.js 并且绝对不需要在 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).

最后,如果你想更高级,这个 SPA 指南 是关于使用 Knockout 和 MVC 创建单页应用程序的非常有用的 4 部分教程.

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.

这篇关于KnockOut.js 与 Asp.net mvc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆