首先在jsp中导入一下文件
/extJs/resources/css/ext-all.css...">
/extJs/ext-all.js">
下面看源码,源码中有注释,有看不懂的请联系博主...height: 200,//高度
width: 400,//宽度
layout: 'fit',//填充布局
//activeItem:0,//默认激活itmes中的第...: 'button', text: 'Button 1' }
],//在窗体下方显示工具按钮
fbar: [
{ type: 'button', text: 'Button...,居中
buttons:[
{xtype: 'button', text: 'Button 2'}
],
closable : false,//隐藏右上角close关闭按钮