Extjs4.0.7 MVC Architecture异常

uncaught exception: Ext.Loader is not enabled, so dependencies    cannot be resolved dynamically. Missing required class: AM.controller.User

 

解决方法:

在app.js最上面加上:Ext.Loader.setConfig({ enabled: true });

Extjs4.0.7 MVC Architecture异常
Ext.Loader.setConfig({ enabled: true });
Ext.application({
    name: ‘AM‘,
    
    appFolder: ‘app‘,
    
    launch: function(){
        Ext.create(‘Ext.container.Viewport‘, {
            layout: ‘fit‘,
            items: [
                {
                    xtype: ‘panel‘,
                    title: ‘用户‘,
                    html: ‘<font color=blue>用户列表</font>‘
                }
            ]
        });
    },
    
    controllers: [
        ‘Users‘
    ]
    
});
Extjs4.0.7 MVC Architecture异常

Extjs4.0.7 MVC Architecture异常,布布扣,bubuko.com

Extjs4.0.7 MVC Architecture异常

上一篇:[Java Web 王者归来]读书笔记2


下一篇:MVC 区分是哪按键提交FORM