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
varDialogExt=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
vartrace=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
varButton=Ext.Button;
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
//设置Ext.MessageBox别名为MessageBox
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
varMessageBox=Ext.MessageBox;
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
//变量设置,用于保存DialogExt自身及当中键钮
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
varroot;
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
varbtn0;
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
varbtn1;
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
varbtn2;
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
varbtn3;
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=newButton(...{renderTo:'a',text:'确定选项'});
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与FormExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Formbtn1
=newButton(...{renderTo:'b',text:'yes/no选项'});
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与FormExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Formbtn2
=newButton(...{renderTo:'c',text:'输入框选项'});
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与FormExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Formbtn3
=newButton(...{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与FormMessageBox.alert(
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
'消息框',
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
'Ext很简单。',
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Formroot.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与FormMessageBox.confirm(
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
'提问',
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
'Ext是否很容易掌握?',
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Formroot.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与FormMessageBox.prompt(
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
'输入框',
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
'输入内容:',
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Formroot.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与Formtitle:
'进度条',
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Formmsg:
'初始化中…',
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Formwidth:
240,
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Formprogress:
true,
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Formclosable:
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
varf=function(v)...{
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与FormExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
returnfunction()...{
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与FormExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
if(v<=10)...{
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与FormMessageBox.updateProgress(
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Formv
/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(vari=1;i<=11;i++)...{
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与FormsetTimeout(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与Formtrace(
"点击按钮:"+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
<metahttp-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
<linkrel="stylesheet"type="text/css"href="resources/css/ext-all.css"/>
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
<scripttype="text/javascript"src="adapter/ext/ext-base.js"></script>
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
<scripttype="text/javascript"src="ext-all-debug.js"></script>
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
<!--加载我的js文件-->
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
<scripttype="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
<tablecellspacing="5">
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
<tr>
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
<td><divid="a"></div></td>
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
<td><divid="b"></div></td>
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
<td><divid="c"></div></td>
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
<td><divid="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
vartrace=function(str)...{
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与FormExt.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
varForm=Ext.form.FormPanel;
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
varMessageBox=Ext.MessageBox;
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
varTextField=Ext.form.TextField;
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
//变量设置
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
varroot;
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
varform;
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
vartextField0;
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
vartextField1;
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
vartextField2;
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
vartextField3;
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与Formroot
=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=newForm(...{
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=newTextField(...{
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与FormfieldLabel:
'姓名',
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Formname:
'name',
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Formwidth:
175,
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与FormallowBlank:
false
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form}
);
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与FormExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与FormtextField1
=newTextField(...{
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与FormfieldLabel:
'地址',
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Formname:
'address',
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Formwidth:
175
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form}
);
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与FormExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与FormtextField2
=newTextField(...{
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与FormfieldLabel:
'年齢',
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Formname:
'age',
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Formwidth:
175
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form}
);
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与FormExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与FormtextField3
=newTextField(...{
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与FormfieldLabel:
'email',
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Formname:
'email',
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
//验证类型为email
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
vtype:'email',
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Formwidth:
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与FormMessageBox.alert(
'消息框','保存数据')}
);
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与FormExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Formform.addButton(
'取消',function()...{
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与FormMessageBox.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
<metahttp-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
<linkrel="stylesheet"type="text/css"href="resources/css/ext-all.css"/>
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
<scripttype="text/javascript"src="adapter/ext/ext-base.js"></script>
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
<scripttype="text/javascript"src="ext-all-debug.js"></script>
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
<!--我的js文件-->
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
<scripttype="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
<divstyle="width:300px;">
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
<divclass="x-box-tl"><divclass="x-box-tr"><divclass="x-box-tc"></div></div></div>
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
<divclass="x-box-ml"><divclass="x-box-mr"><divclass="x-box-mc">
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
<h3style="margin-bottom:5px;">Ext的form</h3>
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
<divid="frmExt"></div>
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
</div></div></div>
ExtJS2.0开发与实践笔记[1]——ExtJS中的Dialog与Form
<divclass="x-box-bl"><divclass="x-box-br"><divclass="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文档。

相关文章: