extjs4.0的MVC设计模式

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', { //�
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值