摘要: 回调函数updateImage中的key参数,在外部调用时有程序员自己指定. 使用Ext.Function.bind(this.updateImage, this, 'imageUrl', true) 参数一:updateImage函数引用, 参数二:this(固定写法) 参数三:程序员自定义upd 阅读全文
posted @ 2016-01-28 17:26 旋转的梦 阅读(1823) 评论(0) 推荐(0)
摘要: 说明:将store初始化在类定义时便创建, store实例将成为该类的单例代码:测试:说明:将store初始化放入initComponent函数中. 每次都将创建一个新的实例.代码:测试结果: 阅读全文
posted @ 2016-01-23 11:32 旋转的梦 阅读(361) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-01-23 11:28 旋转的梦 阅读(506) 评论(0) 推荐(0)
摘要: Extjs TabPanel 选项卡延迟加载说明: Ext中用到tabpanel选项卡控件, 选项卡页签默认是延迟加载的, 当用户手工切换到某页签下时该页签才会加载, 在页签没有加载前, 用户对该页签下其他属性进行设置都是无效的, 有些情况我们需要在页面初始化的时, 便渲染某些未加载的页签下的属性.... 阅读全文
posted @ 2016-01-23 11:26 旋转的梦 阅读(649) 评论(0) 推荐(0)
摘要: var me = this.getView('EditProProductQrcodePanel');var grid = me.down("[name=mallQrcodeGrid]");var store = grid.getStore();//设置选中的行isLogo=1store.getAt... 阅读全文
posted @ 2016-01-22 17:35 旋转的梦 阅读(455) 评论(0) 推荐(0)
摘要: 动态改变store的条件参数。var store = win.down('grid[name=sourceGrid]').getStore(); Ext.apply(store.proxy.extraParams, { id: model.id ... 阅读全文
posted @ 2016-01-22 16:33 旋转的梦 阅读(1532) 评论(0) 推荐(0)
摘要: WebApplicationContext wac = ContextLoader.getCurrentWebApplicationContext(); ManageResolver mr = (ManageResolver) wac.getBean("manageResolver")... 阅读全文
posted @ 2016-01-21 18:49 旋转的梦 阅读(167) 评论(0) 推荐(0)
摘要: /**重写ext filed组件, 实现表单必填项加红色*星号**/ Ext.override(Ext.form.field.Base,{ initComponent:function(){ if(this.allowBlank!==undefined && !this.allowBlank)... 阅读全文
posted @ 2016-01-12 11:31 旋转的梦 阅读(1864) 评论(0) 推荐(0)
摘要: 在build节点下增加resources. src/main/java/com/coracle/yk/xpo/po/common ... 阅读全文
posted @ 2015-12-14 12:54 旋转的梦 阅读(509) 评论(0) 推荐(0)
摘要: 1.取消自动validation 有一堆,什么xml、jsp、jsf、js等等,我们没有必要全部都去自动校验一下,只是需要的时候才会手工校验一下!取消方法:windows-->perferences-->myeclipse–->validation除开Manual下面的复选框全部选中之外,其他全部不... 阅读全文
posted @ 2015-12-10 16:23 旋转的梦 阅读(188) 评论(0) 推荐(0)