错误信息1:
DataTables warning: table id=hoursCount - Cannot reinitialise DataTable. For more information about this error, please see http://datatables.net/tn/3
解决办法:1.添加”bDestroy”: true。
解析:”bDestroy”: true的作用是为了当再次查询时候,重新渲染这个表格,否则就会报错。
错误信息2:DataTables warning: table id=applyList - Requested unknown parameter ‘no’ for row 0. For more information about this error, please see http://datatables.net/tn/4
出现问题原因:这样的错误,就是说后台返回的json数据里面含有null或者undefined的值。
解决办法:1.修改后台的数据不要含又null和undefiend这类数据,2.在前台展示的时候判断一下返回null和undefined情况