出现这种错误时 :

前后端传值问题   DataTables warning: table id=CalendarQueryTable - Ajax error. For more information about this error

判断应该是此处的问题(因为去掉这句就不会报DataTables warning):

前后端传值问题   DataTables warning: table id=CalendarQueryTable - Ajax error. For more information about this error

 

 

 1.检查 传值字段类型是否与表中字段类型一致

传值字段:

前后端传值问题   DataTables warning: table id=CalendarQueryTable - Ajax error. For more information about this error

 

 表中字段:

前后端传值问题   DataTables warning: table id=CalendarQueryTable - Ajax error. For more information about this error

 

 这里我的传值字段类型不一致导致出现 DataTables warning

解决方法: 把传值字段类型改成string即可

 

2. 检查前端页面显示的表头的个数是否与js中显示的数据个数一致。

(待续)

相关文章: