本文介绍了Kendo UI-Observable,ObservableObject和Model之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
observable,ObservableObject和Model之间有什么区别?谢谢.
What are the differences between the observable, ObservableObject and Model?Thank You.
推荐答案
模型继承自ObservableObject,后者继承自Observable.
Model inherits from ObservableObject which inherits from Observable.
- 可观察为事件提供支持-绑定,解除绑定和触发方法.
- ObservableObject 提供更改跟踪.由数据源和MVVM框架使用.
- 模型提供标识(通过
id
字段)和字段定义.设置schema.model
时由数据源使用.
- Observable provides support for events - the bind, unbind and trigger methods.
- ObservableObject provides change tracking. Used by the DataSource and the MVVM framework.
- Model provides identity (via the
id
field) and field definition. Used by the DataSource whenschema.model
is set.
这篇关于Kendo UI-Observable,ObservableObject和Model之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!