首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

ext_GridPanel2_五

2013-11-22 
ext_GridPanel2_5//准备数据var data [{name: 李赞红,sex: 男,birthday: Date.parseDate(1979-04-11

ext_GridPanel2_5

//准备数据var data  = [    {   name: "李赞红",   sex: "男",   birthday: Date.parseDate("1979-04-11", "Y-m-d"),   edu: "本科",   memo: "无备注"   },    {   name: "陈南",   sex: "男",   birthday: Date.parseDate("1987-08-06", "Y-m-d"),   edu: "本科",   memo: "一个小帅哥哈"   },    {   name: "易珊静",   sex: "女",   birthday: Date.parseDate("1980-05-12", "Y-m-d"),   edu: "本科",   memo: "无备注"   },    {   name: "张海军",   sex: "男",   birthday: Date.parseDate("1980-12-11", "Y-m-d"),   edu: "本科",   memo: "无备注"   },];//Proxyvar proxy = new Ext.data.MemoryProxy(data);//Record 定义记录结果var Human = Ext.data.Record.create([   {name: "Name", type: "string", mapping: "name"},   {name: "Sex", type: "string", mapping: "sex"},   {name: "Birthday", type: "string", mapping: "birthday"},   {name: "Education", type: "string", mapping: "edu"},   {name: "Memo", type: "string", mapping: "memo"}]);//Readervar reader = new Ext.data.JsonReader({}, Human);//storevar store = new Ext.data.Store({proxy: proxy,reader: reader});store.load();
?

热点排行