摘要: 通过分析源代码解决动态加载Controller的问题最近在研究ExtJs(4.2.0)的MVC开发模式,具体Extjs的MVC如何使用这里不解释,具体参见ExtJs的官方文档。这里要解决的问题是如何解决在使用MVC模式时动态加载Controller。这是正常的写法,在Application里配置ControllerApplicationExt.application({ ... controllers: [ 'Users' ], ...});ControllerExt.define('AM.controller.Users', { extend: '.. 阅读全文
posted @ 2013-07-08 13:34 大新博客 阅读(1818) 评论(2) 推荐(1)
摘要: /** * 系统通用下拉选择Gird */Ext.define("Common.picker.GridPicker", { extend: "Ext.form.field.Picker", alias: 'widget.gridPicker', displayField: null, valueField: null, matchFieldWidth: false, store: null, columns: null, pickerWidth: 400, pickerHeight: ... 阅读全文
posted @ 2013-07-08 10:48 大新博客 阅读(2213) 评论(0) 推荐(0)