阅读背景:

将knockout.js observablearray对象传递给MVC Controller Action?

来源:互联网 

Im using knockout with MVC. Im trying to pass an observable array of objects from knockout back to my MVC controller action for saving to the database. If I pass the Array from knockout over to my controller action via ko.toJSON(viewModel.ArrayName) it comes back as null in my controller parameter. If I try to pass it to MVC via ko.toJS(viewModel.ArrayName) it has the correct number of items but the data is null for some reason. Any help on how to do this would be greeatly appreciated. Thanks!Im using knockout with MVC. Im trying to pass a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: