Ext
共 2 篇文章
Ext.Store的获取方法
一直都是这样定义store的: var store = new Ext.data.JsonStore({ }); store.load(); 但是最近在改进自己的Ext设计方法的时候(也就是使用Ext的extend来实现继承的设计方法),却遇到了无法获取Store的问题。看下面的代码: Leangle.form.combo.ColorComboBox = Ext.extend(Leangle.form.BaseComboBox,{ id : "combo_color", name:'colorId', hiddenName:'colorId', valueField : "colorId",…
2011-07-27 15:51 · Ext · EXT · 转载
Ext 控件继承
最近在看Ext的源码,发现Ext的基础控件都是使用继承来实现的,忽然觉得自己的写法也该改改了,不然js代码多起来了,就很难管理了。 不用继承的写法: // 设置颜色的下拉列表 var store_color = new Ext.data.JsonStore({ url : "whInput!getColorList.action", method : "post", root : "ColorList", fields : ["colorId", "colorName"], autoLoad : true }); var combo_color = new Ext.form.ComboBox…
2011-07-27 15:48 · Ext · 转载