0
我試圖來從URL JSON數據,我想使使用JavaScript的HTML表格JSON數據,使表在HTML中。如何利用具有多個陣列
請建議我該怎麼做。
JSON數據:
[{
"name": "External System",
"data": ["CHAT", "EMAIL", "EVENTMANAGEMENT", "INSTANTMESSAGING", "PHONECALL", "SELFSERVICE"]
}, {
"name": "CANCELLED",
"data": [0, 2, 263, 0, 3, 1]
}, {
"name": "CLOSED",
"data": [2, 36, 4057, 1, 279, 10]
}, {
"name": "INPROG",
"data": [0, 2, 15, 0, 4, 0]
}, {
"name": "NEW",
"data": [0, 0, 0, 0, 0, 0]
}, {
"name": "PENDING",
"data": [0, 0, 0, 0, 0, 0]
}, {
"name": "QUEUED",
"data": [0, 0, 36, 0, 1, 0]
}, {
"name": "RESOLVED",
"data": [0, 5, 79, 0, 3, 1]
}, {
"name": "SLAHOLD",
"data": [0, 4, 3, 0, 5, 0]
}]
預計表視圖:
這是一個數組,而不是JSON – Pugazh
@Pugazh他們之間有區別嗎?它是一個對象數組。 – Rajesh
是一個數組和JSON一樣嗎? – Pugazh