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

Extjs怎么通过json接受后台传过来的String类型的List数据

2013-06-19 
Extjs如何通过json接受后台传过来的String类型的List数据,求助var store new Ext.data.Store({proxy : n

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格式,要么是类似二维数组格式。

热点排行