whueuwe
2021-01-23 17:30bootstrap-treeview C# 后台怎么拼json字符串
5 var defaultData = [
{
text: 'Parent 1',
href: '#parent1',
tags: ['4'],
nodes: [
{
text: 'Child 1',
href: '#child1',
tags: ['2'],
nodes: [
{
text: 'Grandchild 1',
href: '#grandchild1',
tags: ['0']
},
{
text: 'Grandchild 2',
href: '#grandchild2',
tags: ['0']
}
]
},
{
text: 'Child 2',
href: '#child2',
tags: ['0']
}
]
},
{
text: 'Parent 2',
href: '#parent2',
tags: ['0']
},
{
text: 'Parent 3',
href: '#parent3',
tags: ['0']
},
{
text: 'Parent 4',
href: '#parent4',
tags: ['0']
},
{
text: 'Parent 5',
href: '#parent5',
tags: ['0']
}
];
后台如何返回这样的json
- 点赞
- 收藏
- 复制链接分享
2条回答
为你推荐
- Bootstrap-table 查询结果为无数据时显示图片的方法
- html5
- javascript
- css3
- bootstrap
- jquery
- 1个回答
- 使用带有Bootstrap 3的tagsinput和typeahead
- css
- javascript
- php
- jquery
- 1个回答
- bootStrap-table 无法根据index删除对应行
- html5
- javascript
- bootstrap
- jquery
- 1个回答
- 使用Bootstrap-Editable时,日期时间更新出错
- x-editable
- html
- datetime
- php
- mysql
- 1个回答
- 在bootstrap-fileinput中通过post发送一个额外的变量
- javascript
- php
- 1个回答