Posted on 2007-09-12 14:15
puras 阅读(3373)
评论(4) 编辑 收藏 所属分类:
ExtJS
作者:赫连紫軒(Puras)
为了测试一些功能写的
代码有些乱
有些朋友说想要看看源码
对付看下吧
呵
用于列表显示的结果的JSON数据结构样例:
{
"totalCount":58,
"roleList":[
{
"id":1,
"description":"description1",
"name":"puras1",
"createDate":"Wed Sep 12 11:28:46 CST 2007",
"updateDate":"Wed Sep 12 11:28:46 CST 2007"
},
{
"id":2,
"description":"description2",
"name":"puras2",
"createDate":"Wed Sep 12 11:28:46 CST 2007",
"updateDate":"Wed Sep 12 11:28:46 CST 2007"
},
{
"id":3,
"description":"description3",
"name":"puras3",
"createDate":"Wed Sep 12 11:28:46 CST 2007",
"updateDate":"Wed Sep 12 11:28:46 CST 2007"
},
{
"id":4,
"description":"description4",
"name":"puras4",
"createDate":"Wed Sep 12 11:28:46 CST 2007",
"updateDate":"Wed Sep 12 11:28:46 CST 2007"
},
{
"id":5,
"description":"description5",
"name":"puras5",
"createDate":"Wed Sep 12 11:28:46 CST 2007",
"updateDate":"Wed Sep 12 11:28:46 CST 2007"
}
]
}
添加,修改,删除后返回的JSON数据结构样例:
json = "{success : true, info : '添加成功'}"
json = "{failure : true, info : '添加失败'}"
下载地址:
Grid.Rar