您现在的位置是:首页 > 开发教程

开发教程

为EasyUI的Tree与TreeGrid控件快速绑定数据

2020-11-08 16:14:57 开发教程 admin
我们知道,要为EasyUI的Tree或TreeGrid控件绑定数据,官方提供的json格式如下:[{"id":1,"name":"C","size":"","date":"02/19/2010","children":[{"id":2,"n
我们知道,要为EasyUI的Tree或TreeGrid控件绑定数据,官方提供的json格式如下:
[{
"id":1,
"name":"C",
"size":"",
"date":"02/19/2010",
"children":[{
"id":2,
"name":".net学习网",
"size":"120MB",
"date":"03/20/2010",
"children":[{
"id":21,
"name":"www.lmwlove.com",
"size":"",
"date":"01/13/2010",
"state":"closed"}]
}]
}]