问题
I am using DataTables with server side processing enabled. While refreshing the table data using fnReloadAjax()
method, the processing div shows up, then after request completes it hides(table still shows old data) and then after about 2 seconds new data appears in the table.
So there is a period of few second where it appears that the plugin has finished loading the new data but it still shows the old data.Is there a way to hold the processing div till the new data is drawn in the table?
来源:https://stackoverflow.com/questions/14009561/datatables-processing-div-hides-before-table-is-updated-using-fnreloadajax