问题
Below is my json part:
var Json = {
"Sample" : {
"Sample Demo": {
"1": {"JAN": {"ID": "1","Name": "Jim"}},
"2": {"FEB": {"ID": "2","Name": "Jack" } }
}},
"Idname" : "2",
"Date" : "01/28/2014",
"State" : "1"
}
I need the above json to create a table in the following format.
TABLE:
JAN FEB 1 2 Jim Jack
I need both header and body of table from json. Also only one part of the whole json will be shown as table, rest will be shown as normal fields.
Also, whenever the starting keyname = "JAN" is found and ending keyname="FEB" is found, i want to load the table automatically.
Demo/example are welcome..
来源:https://stackoverflow.com/questions/22130859/creating-table-using-json-data