knockout.js partial mapping from json
问题 On the knockout.js site's documentation they say that when you get data back from the server you can do this: // Every time data is received from the server: ko.mapping.fromJS(data, viewModel); I'd like to partially map the data back into my object model. Is that possible? I have a viewModel.jobs[i].JobType child object, so I'd like to do something like this: ko.mapping.fromJS(data.jobType, viewModel.jobs[i].JobType); ... meaning I'd like to just map in the jobType from the result from the