zoukankan      html  css  js  c++  java
  • datatable 表头增加搜索

     1 $('#table thead tr').clone(true).appendTo('#table_box thead');
     2 $('#table thead tr:eq(1) th').each( function (i) {
     3         var title = $(this).text();
     4         var index = $(this).index();
     5         var enVal = columns[index].enVal;
     6         // 列搜索
     7         $(this).html('<input type="text" style="100%;" class="column_search_input" data-column="'+ index +'" data-en="'+enVal+'"/>');
     8         $('input', this).on( 'keyup change', function (e) {
     9             代码code
    11         })        
    13 })
  • 相关阅读:
    浮点数
    2020.07.13
    2020.07.07
    2020.07.06
    剑指offer(三)
    剑指offer(二)
    剑指offer
    堆排序
    归并排序
    希尔排序
  • 原文地址:https://www.cnblogs.com/fyjz/p/13132309.html
Copyright © 2011-2022 走看看