日期:2014-05-16 浏览次数:20342 次
/* var store = new Ext.data.JsonStore({ // totalProperty: "totalProperty", // root: "root", url : "http://127.0.0.1:8080/extTest/getFileName", fields : ["length", "path", "rptName","size"] }); */
//Proxy var proxy = new Ext.data.HttpProxy({url: "http://127.0.0.1:8080/extTest/getFileName"}); //Record 定义记录结果 var Report = Ext.data.Record.create([ {name: "path", type: "string", mapping: "path"}, {name: "length", type: "string", mapping: "length"}, {name: "rptName", type: "string", mapping: "rptName"}, {name: "size", type: "string", mapping: "size"} ]); //Reader var reader = new Ext.data.JsonReader({ // totalProperty: "totalProperty", // root: "root", }, Report ); //Store var store = new Ext.data.Store({ proxy: proxy, reader: reader });