Ext.Loader.setConfig 与 Ext.Loader.setPath

1 Ext.Loader.setConfig({  
2    enabled: true,  
3    paths : {//'类名前缀':'对应路径'  
4       'App.ux' : 'lib'  
5    }  
6 });  
7 //或者用setPath设置匹配路径  
8 //Ext.Loader.setPath('App.ux', 'lib');//'类名前缀','所在路径'  
9 Ext.require(['App.ux.MusicWin']);//引入App.ux(也就是lib)文件夹下名为MusicWin.js的文件

出至:http://czpae86.iteye.com/blog/1329462

posted on 2013-06-03 02:16  xsSystem  阅读(1578)  评论(0编辑  收藏  举报