如果 viewModel.data() 的任何可观察元素发生变化,是否有一个发射器可以触发,或者我是否需要循环并订阅每个独立的可观察对象?
data: ko.observable([
{
name: "Chart Position",
fields: ko.observableArray([
{name: "marginBottom", type: "percOrNumber", value: ko.observable(), valueType: ko.observable()},
{name: "marginLeft", type: "percOrNumber", value: ko.observable(), valueType: ko.observable()},
{name: "marginRight", type: "percOrNumber", value: ko.observable(), valueType: ko.observable()},
{name: "marginTop", type: "percOrNumber", value: ko.observable(), valueType: ko.observable()}
])
}
]),