1、Ext.Window弹出式窗口:
fieldLabel:'Released',
name:'released',
disabledDays:[1,2,3,4,5]
}
fieldLabel:'Filmed in',
name:'dilmed in',
boxLabel:'Color'
}
例如: var win = new Ext.Window({
id='w',
title:'lyr:新窗口',//窗口显示名称
width:300,
height:140,
collapsible:true,//是否可折叠
layout:'column',//布局方式
model:true,
item:[]//窗口需要增加的内容
}).show();//让窗口显示出来
2、样式文件:ext-all.css,框架基础库:ext-base.js,核心库:ext-all.js;
3、火狐调试快捷键ctrl+shift+j
4、dreamweaver 更改字体的快捷键ctrl+U
5、弹出窗口用:对浏览器进行alert(),confirm(),prompt()
Ext.MessageBox.alert('标题','内容',function(btn){
alert(' '+btn);
});
6、在传入config对象时,最后一个成员不能以逗号结束,应该是不加逗号的。
例如:new Ext.Panel({
renderTo:'panelDiv',
html:'内容'
});
7、用disabledDays排除一些日期:
例如:{
xtype:'datefield',fieldLabel:'Released',
name:'released',
disabledDays:[1,2,3,4,5]
}
8、只能校验字母:vtype:'alpha'(不让输入汉字和数字)
9、显示校验提示信息,在onReady函数下面加句Ext.QuickTips.init();就可以。
10、1)单选框:radio{
xtype:'radio',fieldLabel:'Filmed in',
name:'dilmed in',
boxLabel:'Color'
}
2)复选框:checkbox{
xtype:'checkbox',
fieldLabel:'Bod Movie',
name:'bad_movie'
xtype:'checkbox',
fieldLabel:'Bod Movie',
name:'bad_movie'
}