2017-02-08 379 views
1
["06-Feb-2017","12-Feb-2017","5","45","40","Neha shishodia","USD","unit2","phase1","Change Request","Client Approval Awaited"]["07-Feb-2017","04-Feb-2017","6","54","48","Neha shishodia","USD","unit2","phase1","Change Request","Manager Approval Awaited"] 

這是我的Ajax響應,因爲我在我的PHP文件中Ajax響應使用 回聲json_encode($ ARR)。 但我不知道如何從ajax響應中獲取json數據。如何獲得弗朗JSON Ajax響應的multiuple數據

+2

因爲你用jQuery標籤玷污了你的問題......你有沒有考慮'jQuery.ajax'?甚至是'jQuery.getJSON' –

回答

1

使用ajax短處理程序jQuery.getJSON獲取json對象的方法。

jQuery.getJSON('file.php',function(arr){ 
    // arr holds the array, do the rest here 
})