如何禁用警告DataTable警告从数据源为行请求未知参数 [英] How to Disable Warning DataTables warning Requested unknown parameter from the data source for row

查看:411
本文介绍了如何禁用警告DataTable警告从数据源为行请求未知参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的数据表中有两行如下。

I have two rows within my datatables as follows.

<tr><td></td><td></td><td></td></tr>
<tr><td colspan="3"></td></tr>

这些行重复自己为数据表上的每个记录。所以你可以想像,我总是得到这个错误,只需要禁用,除非你想知道如何使它的工作。

These rows repeat themselves for every record on datatables. So as you can imagine, I get this error all the time and just need it disabled unless you want to figure out how to make it work.

那么你如何禁用警告:DataTables警告请求来自数据源的未知参数

So how do you disable the warning: DataTables warning Requested unknown parameter from the data source for row

推荐答案

只需添加 $。fn .dataTableExt.sErrMode ='throw'到要放置DataTable的页面。

Just add $.fn.dataTableExt.sErrMode = 'throw' to the page where DataTables will be placed.

这篇关于如何禁用警告DataTable警告从数据源为行请求未知参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆