[英]How to specify the number of columns in datatables jQuery plugin
I downloaded datatables jquery plugin, and I tried to reduce the number of columns from the default six我下载了数据表 jquery 插件,并尝试从默认的六列减少列数
to just four
只有四个
, from the html source code.
, 来自 html 源代码。 After doing this, when I reload my page, it returned an error:
这样做之后,当我重新加载我的页面时,它返回了一个错误:
.
. How do I resolve this???
我该如何解决这个问题???
I have checked datatables website, but I don't really understand how to get this fixed.我检查了数据表网站,但我真的不明白如何解决这个问题。 I'm a newbie in jQuery and this is my first time to use datatables plugin.
我是 jQuery 的新手,这是我第一次使用数据表插件。
You should check datatables documentation: https://www.datatables.net/manual/tech-notes/4您应该检查数据表文档: https : //www.datatables.net/manual/tech-notes/4
It explained there that它在那里解释说
DataTables warning: table id={id} - Requested unknown parameter '{parameter}' for row {row-index}, column{column-index}`数据表警告:表 id={id} - 为行 {row-index}、column{column-index}` 请求未知参数“{parameter}”
{id} is replaced with the DOM id of the table that has triggered the error {parameter} is the name of the data parameter DataTables is requesting {id} 替换为触发错误的表的 DOM id {parameter} 是 DataTables 请求的数据参数的名称
{row-index} is the DataTables internal row index (row().index()) for the row that has triggered the error. {row-index} 是触发错误的行的 DataTables 内部行索引 (row().index())。
{column-index} is the column data index (column().index()) for the column that has triggered the error. {column-index} 是触发错误的列的列数据索引 (column().index())。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.