导航

2014年6月12日

摘要: @CHARSET "UTF-8";.mytable a { color: #c75f3e;}.mytable { width: 100%; border-left: 1px solid #c1dad7; border-top: 1px solid #c1dad7; pa... 阅读全文

posted @ 2014-06-12 12:42 小强有毒 阅读(729) 评论(0) 推荐(0)

2014年3月18日

摘要: store: new Ext.data.Store({ fields: ['name','number'], autoLoad:true,//定义store自动加载,或者在外部定义store在combo显示之前加载 proxy : { type : 'ajax', actionMethods : 'post', url : '${ctx}/admin/getLineList.do', reader:{ type:'json', root:'... 阅读全文

posted @ 2014-03-18 17:09 小强有毒 阅读(238) 评论(0) 推荐(0)

2014年2月21日

摘要: /*Ext.TabPanel主要配置项目表:activeTab String/Number 设置默认激活的tab页的id或索引animScroll Boolean 设置是否在tab页滚动时用动画效果autoTabSelector String 在dom中自动找div的样式选择器(默认'div.x-tab',在autoTabs=true时生效)autoTabs Boole... 阅读全文

posted @ 2014-02-21 19:27 小强有毒 阅读(502) 评论(0) 推荐(0)

2014年2月18日

摘要: Ext.dom.Elementwrap([Objectconfig], [BooleanreturnDom]) : HTMLElement/Ext.dom.AbstractElement使用另一个元素创建并包装当前元素Parametersconfig:Object(optional)用来包装元素的DomHelper元素配置对象,或者是一个空的div时,此值为nullreturnDom:Boolean(optional)设置为true时将返回原始的DOM元素而不是Ext.dom.AbstractElementDefaults to:falseReturnsHTMLElement/Ext.dom. 阅读全文

posted @ 2014-02-18 10:49 小强有毒 阅读(608) 评论(0) 推荐(0)

2014年1月24日

摘要: 研究了一下ExtJS-4,发现这个框架很强大,总结一下,和大家分享分享,理解不到位的地方大家多多指正1. Ext.application2. Ext.onReady()3. Ext.define()4. Ext.data.proxy.Proxy5. Ext的组合属性-mixins6. Ext.create()7. Ext.ComponentQuery、refs:8. Init: function(){}9. Ext.Class.alias10. Ext.AbstractComponent -> xtype11. this.callParent(arguments)12. Ext.data 阅读全文

posted @ 2014-01-24 17:59 小强有毒 阅读(310) 评论(0) 推荐(0)

2014年1月6日

摘要: fieldLabel:'编制用途', xtype:'combo', anchor: '-3', id:'bzyt', name:'aoType.dictName', store: Ext.create('Ext.data.Store', { proxy:new Ext.data.HttpProxy({url:"${ctx}/dataApp/getDicList.do"}), fields: [{name:'dictName',type:'string 阅读全文

posted @ 2014-01-06 15:00 小强有毒 阅读(381) 评论(0) 推荐(0)

2013年12月25日

摘要: Store里proxy:{actionMethods:{read:'post'}}这样就OK了-----JSON 转换function testJosonString(){var str="[{value:1,text:'a'},{value:2,text:'b'}]";var list=[{value:1,text:'a'},{value:2,text:'b'}];alert(str);alert(list);// Ext.decode把字符串转换为对象数组list = Ext.decode( 阅读全文

posted @ 2013-12-25 10:56 小强有毒 阅读(354) 评论(0) 推荐(0)

摘要: getValues([asString], [dirtyOnly], [includeEmptyText], [useDataValues]) :String/ObjectRetrieves the fields in the form as a set of key/value pairs, using theirgetSubmitData()method to collect the values. If multiple fields return values under the same name those values will be combined into an Array 阅读全文

posted @ 2013-12-25 10:08 小强有毒 阅读(355) 评论(0) 推荐(0)

2013年11月4日

摘要: 1 HttpServletResponse response = ServletActionContext.getResponse(); 2 response.addHeader("Content-Disposition","attachment; filename="+ new String(name.getBytes(),"utf-8")); 3 response.setContentType("application/octet-stream"); 4 OutputStream out = response. 阅读全文

posted @ 2013-11-04 14:24 小强有毒 阅读(178) 评论(0) 推荐(0)

2013年10月15日

摘要: 在CSS中,让元素隐藏(指屏幕范围内肉眼不可见)的方法很多,有的占据空间,有的不占据空间;有的可以响应点击,有的不能响应点击。下面一个个列出 1 { display: none; /* 不占据空间,无法点击 */ } 2 { visibility: hidden; /* 占据空间,无法点击 */ } 3 { position: absolute; top: -999em; /* 不占据空间,无法点击 */ } 4 { position: relative; top: -999em; /* 占据空间,无法点击 */ } 5 { position: absolute; visibility: hi 阅读全文

posted @ 2013-10-15 16:46 小强有毒 阅读(181) 评论(0) 推荐(0)