我是新的JSON數組操作。我有一個PHP文件,返回一個json_encode()結果。json數組顯示通過jquery
它返回這樣的結果:
{
"result": {
"2015-08-24": {
"qty": 13,
"qty_items": 85,
"subtotal": "Dh11170.09",
"discount_total": "Dh80.00",
"adjustment_amt": "Dh-8.00",
"payments_amt": "Dh3673.75",
"balance": "Dh7837.84",
"average": "Dh282.60",
"details": [
{
"time": "12:47",
"sales_id": "100001",
"status": "Closed",
"client_id": "3275",
"client_name": "Nathan Dudley",
"subtotal": "Dh300.00",
"discount_total": "Dh0.00",
"adjust_amt": "Dh0.00",
"payments_amt": "Dh300.00",
"balance": "Dh0.00",
"employee_id": "1914",
"employee_name": "Sofia Ferrai"
},
{
"time": "12:50",
"sales_id": "100002",
"status": "Open",
"client_id": "3599",
"client_name": "Scott Cunningham",
"subtotal": "Dh400.00",
"discount_total": "Dh80.00",
"adjust_amt": "Dh32.00",
"payments_amt": "Dh0.00",
"balance": "Dh288.00",
"employee_id": "1914",
"employee_name": "Sofia Ferrai"
},
{
"time": "13:08",
"sales_id": "100003",
"status": "Open",
"client_id": "1",
"client_name": "No Client",
"subtotal": "Dh2080.00",
"discount_total": "Dh0.00",
"adjust_amt": "Dh-646.40",
"payments_amt": "Dh0.00",
"balance": "Dh2726.40",
"employee_id": "2060",
"employee_name": "Irene Pi"
}
]
}
}
}
現在我需要去通過它通過jQuery在表中顯示。請幫忙。謝謝
你需要什麼幫助?你卡在哪裏? –
我得到這個jQuery Ajax調用成功的結果,只需要在html表中顯示。 – Iram
你到底需要什麼幫助?你堅持的是什麼?你不知道該怎麼做?你想從我們這裏得到什麼? –