[英]get json list item with bootstrap table & flat json failed
i use bootstrap-table plugin flatjson
to pasre my json file, my json file as below, but i can't get ActiveConds item. 我使用bootstrap-table插件flatjson
粘贴了我的json文件,如下所示,但我无法获得ActiveConds项目。
[
{
"ActiveConds": [
{
"ExtraParam1": "",
"ExtraParam2": "",
"ID": 1,
"Params": [
240,
0,
0
]
},
{
"ExtraParam1": "",
"ExtraParam2": "",
"ID": 0,
"Params": [
0,
0,
0
]
}
],
"EndTime": "2015-8-15 23:59:59",
"ExtraParam": 0,
"ID": 1001,
"Icon": 2,
"IsBackFlow": 0
}
]
how can i use bootstrap-table plugin "flatjson" to get the value of ActiveConds.ID? 如何使用引导表插件“ flatjson”获取ActiveConds.ID的值? data-field
should be ActiveCons[0].ID
? data-field
应为ActiveCons[0].ID
? in general, how to get value of list in json file by using flatjson? 通常,如何通过使用flatjson获取json文件中列表的值?
Solved . 解决了 。 Use ActiveCons.0.ID, done close it 使用ActiveCons.0.ID,将其关闭
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.