我正在使用淘汰赛-2.2.0.js。我有以下模型:
function Person(name, age, city)
{
this.Name = ko.observable(name);
this.Age = ko.observable(age);
this.City = ko.observable(city);
ko.computed(function(){
//Is there any way to execute this section whenever Name, Age, City any
//of this observable changes without including this.Name, this.Age and
//this.City inside it
}, this).extend({ throttle: 500 });
}
我知道我要问的有点奇怪,但我想知道有没有办法做到这一点?