$.ajax({ url:'http://127.0.0.1:8000/info_list', dataType:'jsonp', // jsonp: 'callbacks', // jsonpCallback:"SayHi", success:function (res) { console.log(res); $('tbody').empty(); $.each(res.data,function (i,item) { var new_tr = document.createElement('tr'); // console.log(item) $.each(item,function (j,field) { console.log(field); var new_td = document.createElement('td'); $(new_td).text(field); $(new_tr).append(new_td) }); $('tbody').append(new_tr) }) },error:function (e) { console.log('e',e.status+','+e.statusText,e) } })