Tag Archives: DataTables warning

DataTables warning encountered using DataTables: table id = DataTables_Table_0 – Ajax error. For more information ab

Using DataTables met this error page DataTables warning: table id = DataTables_Table_0 – Ajax error. For more information about this error, please see http://datatables.net/tn/7, record the hope to help everyone.

is the ajax parameter problem, adminid must be the same as the background Controller parameter name, otherwise the interface will not be implemented and error will be reported.

/*  Adding request parameters to data */
	"fnServerParams" : function(data) {
		data.adminid=$("#adminid").val()
		console.log("id为"+$("#adminid").val())
	},

If an error is reported after the Controller is executed, then the return value is usually faulty, null pointer or the data is not converted to JSON data back.