Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我定义了一个 extjs 类并且我想在 initComponent 中说 addEvents,那么该类是否必须扩展 Ext.util.Observable?
不,Observable 现在是一个 mixin,所以你可以使用:
Ext.define('MyClass', { extend: 'SomeOtherClass', mixins: ['Ext.util.Observable'] })