且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

yadcf接口更改为exFilterColumn混淆

更新时间:2023-12-03 22:57:10

这是应对情况的方法

请求过滤-1值是错误的,因为表中没有这样的值,因此要在调用exFilterColumn之前重设特定的列,应使用

Its wrong to ask for filtering for a -1 value because there is no such value in the table, so in order to reset a specific column just before calling exFilterColumn you should use the exResetFilters with noRedraw set to true (grab from 0.8.9.beta.31) you should call this function before your exFilterColumn

旧答案

我可能已经注意到同一张表多次调用exFilterColumn,而实际上您应该只调用一次,只需为表的每一列设置所需的值,

I might have noticed multiple calls to the exFilterColumn for the same table, while in fact you should call it only once, just set the desired values for each column of the table,

请参阅展示页面(第一个表格)

并注意下面的相关代码

yadcf.exFilterColumn(firstTable, [
    [1, {
        from: 1,
        to: 40
    }],
    [3, "a_value"]
]);

如果仍然没有好处,请提供您的表/yadcf初始化代码以及用于调用exFilterColumn

If it still no goodm please provide the your table / yadcf init code and the code for calling the exFilterColumn

更新:

我注意到您正在使用以下代码行

I noticed that your are using the following line of code

yadcf.exFilterColumn(_rrwebapp_table, [[divisionCol, usedivision], [genderCol, usegender]])

usegender设置为"-1"的情况下,这没有任何意义,因为它是 Select input reset option(选择输入重置选项)的值,因此请确保不要在您的计算机中使用"-1"作为值exFilterColumn通话...

Where your usegender is set to "-1" which makes no sense, because its the value of the Select input reset option, so make sure you dont use "-1" as values in your exFilterColumn calls...