08 2012 档案

摘要:1.fieldset(checkbox) 获取值复选框组件定义如下: 1 { 2 xtype: 'fieldset', 3 title: '兴趣', 4 autoHeight: true, 5 defaultType: 'checkbox', 6 hideLabels: true, 7 id: 'xq', 8 layout: 'hbox', 9 ... 阅读全文
posted @ 2012-08-20 10:28 lihui_yy 阅读(20684) 评论(2) 推荐(1) 编辑
摘要:1 { 2 xtype: 'fieldset', 3 id: 'job', 4 title: '职业', 5 autoHeight: true, 6 defaultType: 'radio', //设置fieldset内的默认元素为radio 7 //hideLabel: false, 8 layout: 'hbox', 9 defaul... 阅读全文
posted @ 2012-08-16 13:58 lihui_yy 阅读(20991) 评论(0) 推荐(1) 编辑
摘要:Ext.get( String/HTMLElement/Ext.Element el ) : Ext.dom.Element返回的是 Ext.dom.Element 对象。Ext.getCmp( String id)返回的是Ext.Component对象。也就是在js代码中定义的对象。例如,使用这两个方法:temp1 = Ext.getCmp("checkbox1");temp2 = Ext.get("checkbox1");则得到的结果如下: 阅读全文
posted @ 2012-08-14 20:47 lihui_yy 阅读(29524) 评论(0) 推荐(0) 编辑
摘要:1.手工模式:progressbar.js: 1 Ext.onReady(function(){ 2 //手动 3 var config = { 4 text: '请稍后...', 5 width: '300', 6 renderTo: document.getElementById('progressbar'), 7 //cls: 'progress-bar' 8 }; 9 var pBar = new Ext.ProgressBar(config);10 var count = 0;11... 阅读全文
posted @ 2012-08-14 14:17 lihui_yy 阅读(1570) 评论(0) 推荐(0) 编辑
摘要:jQuery UI 库文件官方下载: http://jqueryui.com/download使用时,只需在工程中将 development-bundle 文件夹下的themes 文件夹添加到新建 css 文件夹下,并将 ui 文件夹导入到工程中。然后在 html 文件中,按下列顺序导入js文件:<script type="text/javascript" src="jquery-1.7.2.js"></script><script type="text/javascript" src="ui/ 阅读全文
posted @ 2012-08-08 21:04 lihui_yy 阅读(3781) 评论(0) 推荐(2) 编辑