xiaolizi007
11/22/2016 - 6:40 AM

From http://wiki.jikexueyuan.com/project/kendo-ui-development-tutorial/Kendo-mvvm-observableobject.html 为了创建一个 ObservableObject 对象,可以通过创建一个新

From http://wiki.jikexueyuan.com/project/kendo-ui-development-tutorial/Kendo-mvvm-observableobject.html 为了创建一个 ObservableObject 对象,可以通过创建一个新 kendo.data.ObservableObject 实例或是使用 kendo.observable 方法,这两种方法效果相同


var viewModel1 = new kendo.data.ObservableObject( {
  field1: "value1",
  field2: "value2"
});

var viewModel2 = kendo.observable( {
  field1: "value1",
  field2: "value2"
});