JSON

struts2+spring+hibernate+json+jquery+flexigrid集成和在集成过程中需要注意的(2)

字号+ 作者:H5之家 来源:H5之家 2015-11-21 16:42 我要评论( )

"rows":[ {"id":"1","cell":["a","b","c","e"]}, {"id":"2","cell":["a","b","c","e"]}, {"id":"3","cell":["a","b","c","e"]}, {"id":"4","cell":["a","b","c","e"]}, ]} 里面有变量的返回类型,有list的返回类型,

"rows":[
{"id":"1","cell":["a","b","c","e"]},
{"id":"2","cell":["a","b","c","e"]},
{"id":"3","cell":["a","b","c","e"]},
{"id":"4","cell":["a","b","c","e"]},
]}

里面有变量的返回类型,有list的返回类型,有map的返回类型

构造

private bean//这是你的bean类

private total;

private page;

private Map map=new HashMap()

private List rows=new ArrayList();//这里有一个List返回,所以名字起成rows

 

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

相关文章
  • struts2+ajax+json action向页面返回int型数据,页面报异常org.a

    struts2+ajax+json action向页面返回int型数据,页面报异常org.a

    2016-01-31 15:35

  • AFN post JSON

    AFN post JSON

    2016-01-21 18:13

  • 6.Core Json – JSON和Ruby

    6.Core Json – JSON和Ruby

    2016-01-20 15:00

  • wordpress 4.4 禁用REST API/移除wp

    wordpress 4.4 禁用REST API/移除wp

    2016-01-18 18:10

网友点评