JQuery-DataTables-ColumnFilter过滤问题

Cod*_*gry 5 javascript jquery datacolumn jquery-datatables

我正在使用JQuery-DataTables-ColumnFilter插件.我有两个表,当我试图在第一个表上过滤数据时,它正在另一个表中搜索(#example1)而不是(#example在此输入图像描述)

$(document).ready(function(){
     $('#example').dataTable()
          .columnFilter({
            aoColumns: [ {type: "text"},
                     { type: "text" },
                     { type: "text" },
                     { type: "number" },
                     {type: "text"},
                     {type: "text"},
                     {type: "text"},
                     {type: "text"},
                     {type: "text"},
                     {type: "text"},
                     { type: "select", values: [ 'A', 'C', 'U', 'X']  }
                ]

        });
         $('#example1').dataTable()
          .columnFilter({
            aoColumns: [ {type: "text"},
                     { type: "text" },
                     { type: "text" },
                     { type: "number" },
                     {type: "text"},
                     {type: "text"},
                     {type: "text"},
                     {type: "text"},
                     {type: "text"},
                     {type: "text"},
                     { type: "select", values: [ 'A', 'C', 'U', 'X']  }
                ]

        });
});
Run Code Online (Sandbox Code Playgroud)