如何使用KnockoutJS从我的表单中保存数据? [英] How do I save my data from my form with KnockoutJS?

查看:60
本文介绍了如何使用KnockoutJS从我的表单中保存数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用KnockoutJS将我的数据保存到我的服务器上,使用JSON或您使用的任何方法?



有没有人有任何好的例子?或示例代码?



我在VS 2010,C#和.NET 4.0工作

How do I save my data from my form with KnockoutJS to my server with JSON or whatever method you use?

Does anyone have any good examples? or sample code?

I am working in VS 2010, C# and .NET 4.0

推荐答案

基本上你做了一个帖子到您的ASP.NET控制器(如果您使用的是ASP.NET MVC)。以下是一些帮助您的资源:



http: //knockoutjs.com/documentation/json-data.html [ ^ ]

使用ASP.NET应用程序中的KnockoutJS [ ^ ]
Basically you do a post to your ASP.NET controller (if you are using ASP.NET MVC). Here are a couple resources to help you out:

http://knockoutjs.com/documentation/json-data.html[^]
Using KnockoutJS in your ASP.NET applications[^]


这篇关于如何使用KnockoutJS从我的表单中保存数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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