ExtJS2.0中提供了一整套的web表示层UI解决方案,令我们可以非常轻易的实现平时较为复杂的javascript操作,在此我以表示层开发中使用较多的Dialog与Form功能进行一次ExtJS2.0的实现演示。

ExtJS2.0的配置及运行方式请参阅 ExtJS2.0开发与实践笔记[0]-初识ExtJS

DialogExt.js (此中包含了ExtJS的确定,分支选择,进度条,输入框等四个应用实例)
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form/**//**
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form * 
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form 
*/

ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
var DialogExt=function()...
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
/**//**
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form     * 追踪输出
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form     * @param {Object} str
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form     
*/

ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
var trace=function(str)...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form        
//在ExtJS2.0中,log由Ext统一调度
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
        Ext.log(str);
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    }
;
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
//设置Ext.Button别名为Button
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
    var Button=Ext.Button;
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
//设置Ext.MessageBox别名为MessageBox
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
    var MessageBox=Ext.MessageBox;
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
//变量设置,用于保存DialogExt自身及当中键钮
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
    var root;   
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
var btn0;
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
var btn1;
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
var btn2;
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
var btn3;
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
//返回操作
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
    return ...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form        
//初始化函数
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
        init:function()...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            
//设定root等于this
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
            root=this
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            
//生成Ext按钮,绑定数据到Element,renderTo为绑定的按钮名,text为输出内容
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
            btn0=new Button(...{renderTo:'a',text:'确定选项'});
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            btn1
=new Button(...{renderTo:'b',text:'yes/no选项'});
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            btn2
=new Button(...{renderTo:'c',text:'输入框选项'});
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            btn3
=new Button(...{renderTo:'d',text:'进度条选项'});
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            
//确定选项
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
            btn0.on('click',function() ...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                MessageBox.alert(
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                    
'消息框',
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                    
'Ext很简单。',
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                    root.onResult);
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            }
);
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            
//yes/no选项
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
            btn1.on('click',function(evt) ...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                MessageBox.confirm(
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                    
'提问',
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                    
'Ext是否很容易掌握?'
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                    root.onResult);
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            }
);
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            
//输入框选项
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
            btn2.on('click',function(evt) ...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                 MessageBox.prompt(
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                    
'输入框',
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                    
'输入内容:',
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                    root.onResult);
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            }
);
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            
//进度条选项
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
            btn3.on('click',function() ...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                
//生成进度条,分别设定了标题,信息,宽,是否自动前进进度,是否自动关闭进度5项
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
                 MessageBox.show(...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                   title   :
'进度条',
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                   msg     :
'初始化中…',
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                   width   :
240,
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                   progress:
true,
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                   closable:
false
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                }
);
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                
//进度条定时处理
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
                var f=function(v) ...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                    
return function()...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                    
if (v<=10...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                         MessageBox.updateProgress(
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                            v
/10,'读取进度 '+v+'/10');
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                        }
 else ...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                         
//隐藏Ext消息框
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
                         MessageBox.hide();
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                        }

ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                    }
;
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                }
;
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                
//进度条时间设定
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
                for (var i=1;i<=11;i++...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                     setTimeout(f(i),i
*1000);
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                }

ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            }
);
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form        }
,
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form        
//当前操作对象输出
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
        onResult:function(button,text)...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            trace(
"点击按钮:"+button+" 输出文本:"+text);
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form        }

ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    }
;
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form}
();
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
//设定onReady,Ext将在dom加载完毕后自动调用其中操作
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
Ext.onReady(DialogExt.init,DialogExt,true);
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form

Dialog.html
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form<html>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
<head>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
<title>DialogExt</title>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
<!--加载ExtJs资源[当调用Ext.log调试时,需要使用debug方式的js]-->
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
<link rel="stylesheet" type="text/css" href="resources/css/ext-all.css" />
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
<script type="text/javascript" src="adapter/ext/ext-base.js"></script>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
<script type="text/javascript" src="ext-all-debug.js"></script>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
<!--加载我的js文件-->
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
<script type="text/javascript" src="DialogExt.js"></script>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
</head>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
<body>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
<!--设置Element,以供DialogExt.js调用-->
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
<table cellspacing="5">
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form        
<tr>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            
<td><div id="a"></div></td>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            
<td><div id="b"></div></td>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            
<td><div id="c"></div></td>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            
<td><div id="d"></div></td>   
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form        
</tr>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
</table>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
</body>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
</html>

效果图如下:
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form



form应用实例,在此我演示了Ext中简单的Form生成方式。

FormExt.js
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormFormExt=function()...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
var trace=function(str)...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form        Ext.log(str);
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    }
;
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
//1.1版为Ext.form.Form
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
    var Form=Ext.form.FormPanel;
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
var MessageBox=Ext.MessageBox;
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
var TextField=Ext.form.TextField;
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
//变量设置
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
    var root;     
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
var form;      
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
var textField0;
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
var textField1;
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
var textField2;
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
var textField3;
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
return ...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form        
//初始化FormExt
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
        init:function()...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            root
=this;
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            
//生成窗体
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
            form=new Form(...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                
//样式
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
                baseCls: 'x-plain',
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                
//label宽
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
                labelWidth: 75,
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                
//数据提交地址
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
                url:'save.jspa'
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            }
);
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            
//生成TextField
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
            textField0=new TextField(...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                fieldLabel:
'姓名',
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                name      :
'name',
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                width     :
175,
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                allowBlank:
false
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            }
);
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            textField1
=new TextField(...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                fieldLabel:
'地址',
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                name      :
'address',
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                width     :
175
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            }
);
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            textField2
=new TextField(...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                fieldLabel:
'年齢',
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                name      :
'age',
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                width     :
175
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            }
);
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            textField3
=new TextField(...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                fieldLabel:
'email',
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                name      :
'email',
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                
//验证类型为email
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
                vtype     :'email',
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                width     :
175
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            }
);
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            
//将TextField加载入form
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
            form.add(textField0,textField1,textField2,textField3);
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form        
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            
//生成按钮
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
            form.addButton('保存',function()...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                MessageBox.alert(
'消息框','保存数据')}
);
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与FormExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            form.addButton(
'取消',function()...{
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form                MessageBox.alert(
'消息框','取消操作')}
);
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            
//将form内容实施到名称为frmExt的div上
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
            form.render('frmExt');
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form        }

ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    }
;
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form}
();
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
//设定onReady,Ext将在dom加载完毕后自动调用其中操作
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
Ext.onReady(FormExt.init,FormExt,true);


FormExt.html
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form<html>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
<head>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
<title>FormExt</title>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
<!--ExtJS资源引入-->
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
<link rel="stylesheet" type="text/css" href="resources/css/ext-all.css" />
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
<script type="text/javascript" src="adapter/ext/ext-base.js"></script>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
<script type="text/javascript" src="ext-all-debug.js"></script>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
<!--我的js文件-->
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
<script type="text/javascript" src="FormExt.js"></script>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
</head>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
<body>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
<!--frame-->
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
<div style="width:300px;">
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form        
<div class="x-box-tl"><div class="x-box-tr"><div class="x-box-tc"></div></div></div>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form        
<div class="x-box-ml"><div class="x-box-mr"><div class="x-box-mc">
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form            
<h3 style="margin-bottom:5px;">Ext的form</h3>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form        
<div id="frmExt"></div>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form        
</div></div></div>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form        
<div class="x-box-bl"><div class="x-box-br"><div class="x-box-bc"></div></div></div>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form    
</div>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
</body>
ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
</html>

ExtJS2 0开发与实践笔记 1 ——ExtJS中的Dialog与Form
ExtJS自2.0开始UI库已经有了极大的丰富,基本可满足我们日常开发所需的一切效果,而在Java操作中我们习以为常的很多功能,都能够在Ext找到对应的操作。在下回我将着重介绍Ext中Layout的使用。

PS:由于ExtJS类库较多,所以将于较后进行介绍,目前仅以实例为主,现阶段请参阅ExtJS2.0的doc文档。           

相关文章:

  • 2021-11-22
  • 2021-06-06
  • 2021-08-10
  • 2021-06-13
  • 2021-05-07
  • 2021-11-21
猜你喜欢
  • 2021-12-13
  • 2021-10-05
  • 2021-12-10
  • 2021-04-16
  • 2021-12-27
  • 2021-08-19
  • 2021-12-02
相关资源
相似解决方案