DataTables warning: table id=dataTable - Requested unknown parameter 'deptType' for row 3. For more information about this error, please see
(DataTables警告:表id=dataTable——请求第3行的未知参数“deptType”。有关此错误的更多信息,请参见http://datatables.net/tn/4。)
解决方法:加为空判断
{
data: "deptType",
render: function(data, type, row, meta){
if(data!=null){
if(data == 1){
return "仓库";
}else if(data == 2){
return "门店";
}else if(data == 3){
return "DC物流";
}else{
return "";
}
}
},
加一个为空判断data!=null