回答

2

如果屬性更改綁定到視圖模型中的某個屬性,那麼您只需訂閱該屬性即可獲取有關更改的通知。

myViewModel.myProperty.subscribe(function(newValue) { 
    alert("This property changed!!"); 
});