jQuery datatable从ajax获取json数据(jquery datatable get json data from ajax)
使用 dataSrc 属性指示dataTables该行由 responseData 属性保留,并通过引用每个字段。 data 属性,而不是 responseData :
json格式的数据:{
Code:0, responseData:[{
Name: Rocky, Total:39, Passed:35, Failed:4}]}
$('#example')。DataTable(