layui的数据表格怎么获取对象中的集合数据 5C

{
"code": 0,
"msg": "",
"count": 18,
"data":[
{"resource_name":"紫原标题1","resource_describe":"描述1","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包1","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具1","rinfo_size":"6MB"}]},
{"resource_name":"紫原标题2","resource_describe":"描述2","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包2","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具2","rinfo_size":"6MB"}]},
{"resource_name":"紫原标题3","resource_describe":"描述3","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包3","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具3","rinfo_size":"6MB"}]},
{"resource_name":"紫原标题4","resource_describe":"描述4","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包4","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具4","rinfo_size":"6MB"}]},
{"resource_name":"紫原标题5","resource_describe":"描述5","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包5","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具5","rinfo_size":"6MB"}]},
{"resource_name":"紫原标题6","resource_describe":"描述6","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包6","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具6","rinfo_size":"6MB"}]},
{"resource_name":"紫原标题7","resource_describe":"描述7","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包7","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具7","rinfo_size":"6MB"}]},
{"resource_name":"紫原标题8","resource_describe":"描述8","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包8","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具8","rinfo_size":"6MB"}]},
{"resource_name":"紫原标题9","resource_describe":"描述9","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包9","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具9","rinfo_size":"6MB"}]},
{"resource_name":"紫原标题10","resource_describe":"描述10","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集包10","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具10","rinfo_size":"6MB"}]},
{"resource_name":"紫原标题11","resource_describe":"描述11","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包11","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具11","rinfo_size":"6MB"}]},
{"resource_name":"紫原标题12","resource_describe":"描述12","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包12","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具12","rinfo_size":"6MB"}]},
{"resource_name":"紫原标题13","resource_describe":"描述13","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包13","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具13","rinfo_size":"6MB"}]},
{"resource_name":"紫原标题14","resource_describe":"描述14","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包14","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具14","rinfo_size":"6MB"}]},
{"resource_name":"紫原标题15","resource_describe":"描述15","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包15","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具15","rinfo_size":"6MB"}]},
{"resource_name":"紫原标题16","resource_describe":"描述16","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包16","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具16","rinfo_size":"6MB"}]},
{"resource_name":"紫原标题17","resource_describe":"描述17","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包17","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具17","rinfo_size":"6MB"}]},
{"resource_name":"紫原标题18","resource_describe":"描述18","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包18","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具18","rinfo_size":"6MB"}]}
]
}

这是json

2个回答

qq_36259025
执丶笔 你这个没用 他这个就是一个普通的对象集合,我的是对象里面还有集合,最终还要合并单元格
5 个月之前 回复

不是很明白。。要显示data中resource_list的值吗?这块是在合并单元格显示还是怎么做?可以给个表格显示字段示例吗?
可以考虑使用template来显示。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问