且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

jQuery DataTables:未捕获TypeError:无法读取未定义的属性“mData”

更新时间:2022-06-25 22:15:30

检查天气或不是所有php echo的实际输出在所有行上不是NULL的东西,因为DataTables会将任何具有NULL的单元格视为不存在的内容,这也可能导致该错误。

尝试避免将直接php输出到html表。

check weather or not all the php echo's are actually outputting something that is not 'NULL' on all rows as DataTables will treat any cell with just NULL as content as non existant and this can also cause that error.
try avoiding direct php output to html table.