Extjs如何通过json接受后台传过来的String类型的List数据,求助
var store = new Ext.data.Store({
proxy : new Ext.data.HttpProxy({ url : "financial!listStudentsByPage.action" }),
reader : new Ext.data.JsonReader({
totalProperty : 'total',
root : 'listfinancial',
successProperty : 'SUCCESS',
fields : [{ }]
listfinancial在后台Action中定义private <String>List listfinancial;
listfinancial在后台已得到
fields 里面应该怎么填呢?
[解决办法]
如果你说的事这种["huawei","123","cellphone"];
那就不知道怎么配置了,fields貌似不支持这种。
一般extjs接收的格式要么是json格式,要么是类似二维数组格式。