日期:2014-05-16 浏览次数:20503 次
//从本地数组得到 var arr=[[1,'Bill','Garderner'],[2,'Ben','Horticulturalist']];//用以代替从数据库获得的数据 var reader = new Ext.data.ArrayReader( {id:0}, [ {name:'name',mapping:1}, {name:'occupation',mapping:2} ] ); var store = new Ext.data.Store({ reader:reder }); store:loadData(arr);
?http://www.360doc.com/content/09/1217/18/65546_11366844.shtml