在我的视图模型中,我有以下代码:
var self = this;
self.Name = ko.observable(data.Name);
var mapped = $.map(data.Addresses, function (item) { return new Address(item) });
self.AddressList = ko.observableArray(mapped);
self.dirtyFlag = new ko.DirtyFlag([self.Name, self.AddressList]);
由于AddressList
.
有没有办法指定什么值不脏或者什么时候开始监控变化?