Extjs 4 如何动态加载 Controller

Ext.application.prototype.addController = function (name) {
var me = this;
var controller = AM.getApplication().getController(name);
if (!controller) {
controller = Ext.create(this.getModuleClassName(name, ‘controller‘), {
application: me,
id: name
});
this.controllers.add(controller);
if (me._initialized) {
controller.doInit(me);
}
}
};

Extjs 4 如何动态加载 Controller,布布扣,bubuko.com

Extjs 4 如何动态加载 Controller

上一篇:servlet从jsp到jsp实现例子


下一篇:PHP设计模式之单例模式