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
})
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'
, {?
//?