问题描述
jwr返回的list中怎么在extjs中的grid中显示出来?我调用findAll方法然后触发回调函数call,此时的list应该是一个json集合,但我不知道怎么在store中写Ext.onReady(function(){method.findAll(call);functioncall(list){varstore=newExt.data.Store({reader:newExt.data.JsonReader(['id','name','password'])});varcol=newExt.grid.ColumnModel([{header:'id',dataIndex:'id'},{header:'name',dataIndex:'name'},{header:'password',dataIndex:'password'}]);newExt.grid.GridPanel({renderTo:'div1',title:'aa',height:200,width:300,cm:col,store:store,aotoExpandColumn:2});}
时间: 2024-12-28 15:18:51