这个是model
Ext.regModel(‘commemModel‘, { fields : [ ‘name‘, ‘id‘ ] });
var gjcx1 = new Ext.data.Store({ autoLoad:true, model : commemModel, proxy : { type : ‘ajax‘, url : ‘../store/cxjd.json‘ }, listeners :{ load:function(){ Ext.getCmp(‘s1‘).setValue(‘q1‘); } } });
[ {name:‘第一季度‘,id:‘q1‘}, {name:‘第二季度‘,id:‘q2‘}, {name:‘第三季度‘,id:‘q3‘}, {name:‘第四季度‘,id:‘q4‘} ]
Linux/UNIX之进程控制(2),布布扣,bubuko.com
原文:http://blog.csdn.net/walkerkalr/article/details/24371795