01 2016 档案

摘要:var jsonStr= '{ "name": "zhangsan", "age": "18" }'; var json= Ext.decode(jsonStr); alert(json.name);JSON.stringify(record.data) 阅读全文
posted @ 2016-01-29 11:36 旋转的梦 阅读(1123) 评论(0) 推荐(0)
摘要:设置actionMethods, read为post proxy: { type: 'ajax', url: '../Dictionary/query', actionMethods: { read: 'POST' }, extraParams: { tableName: config.table, 阅读全文
posted @ 2016-01-28 21:15 旋转的梦 阅读(426) 评论(0) 推荐(0)
摘要:回调函数updateImage中的key参数,在外部调用时有程序员自己指定. 使用Ext.Function.bind(this.updateImage, this, 'imageUrl', true) 参数一:updateImage函数引用, 参数二:this(固定写法) 参数三:程序员自定义upd 阅读全文
posted @ 2016-01-28 17:26 旋转的梦 阅读(1824) 评论(0) 推荐(0)
摘要:说明:将store初始化在类定义时便创建, store实例将成为该类的单例代码:测试:说明:将store初始化放入initComponent函数中. 每次都将创建一个新的实例.代码:测试结果: 阅读全文
posted @ 2016-01-23 11:32 旋转的梦 阅读(362) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-01-23 11:28 旋转的梦 阅读(506) 评论(0) 推荐(0)
摘要:Extjs TabPanel 选项卡延迟加载说明: Ext中用到tabpanel选项卡控件, 选项卡页签默认是延迟加载的, 当用户手工切换到某页签下时该页签才会加载, 在页签没有加载前, 用户对该页签下其他属性进行设置都是无效的, 有些情况我们需要在页面初始化的时, 便渲染某些未加载的页签下的属性.... 阅读全文
posted @ 2016-01-23 11:26 旋转的梦 阅读(650) 评论(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 旋转的梦 阅读(456) 评论(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 旋转的梦 阅读(1533) 评论(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)