0
我正在使用knockout_2.0.js。我有一個observableArray,我設置了訂閱。像:如何查看observableArray更改
var Items = ko.observableArray();
Items.subscribe(function(newValue){
//I want to check here whether the item is Added or Deleted from the array
});
我該怎麼做?
這樣可以在所有添加*和*的情況下工作嗎? – 2013-02-16 06:43:04