http://www.oschina.net/code/snippet_195396_6706
app.js |
02 | Ext.onReady( function (){ |
03 | Ext.QuickTips.init(); |
04 | Ext.Loader.setConfig({ |
05 | enabled: true |
06 | }); |
07 | Ext.application({ |
08 | name : 'AM' , //应用的名字 |
09 | appFolder : "app" , //应用的目录 |
10 | launch: function (){ //当前页面加载完成执行的函数 |
11 | Ext.create( 'Ext.container.Viewport' , { //简单创建一个试图 |
12 | layout: 'auto' , //自动填充布局 |
13 | items: { |
14 | xtype: 'userlist' , |
15 | title: 'Users' , |
16 | html : 'List of users will go here' |
17 | } |
18 | }); |
19 | }, |
20 | controllers:[ |
21 | 'Users' |
22 | ] |
23 | }); |
24 | }) |
[文件] app.js ~ 559B 下载(16)
01 | Ext.onReady( function (){ |
02 | Ext.QuickTips.init(); |
03 | Ext.Loader.setConfig({ |
04 | enabled: true |
05 | }); |
06 | Ext.application({ |
07 | name : 'AM' , //Ӧ�õ����� |
08 | appFolder : "app" , //Ӧ�õ�Ŀ¼ |
09 | launch: function (){ //��ǰҳ��������ִ�еĺ��� |
10 | Ext.create( 'Ext.container.Viewport' , { //� |