JQuery DataTables - AJAX reloading how to catch when nothing is returned
问题 I am using a datatable and allow records to be deleted from the database. After deletion, I reload the table to display the recent changes. However, if I delete the last record from the database, null is returned by the AJAX call and does not update the datatable (it still displays the record that was just deleted). My Call after the delete function is performed: oTable.fnDraw(); oTable.fnReloadAjax(); The console error here is: json.aaData is null [Break On This Error] for ( var i=0 ; i<json