dca trading strategy
共 1 篇网址
jQuery(window).on('load', function () { $('#tablepress-1 tfoot td').each(function () { const th = jQuery(document.createElement('th')).html($(this).html()); $(this).replaceWith(th); }); var table = $('#tablepress-1').DataTable(); console.log("列数:" + table.columns().count()); table.columns().every(function (index) { var column = this; console.log("第 " + index + " 列的 footer 是:", column.footer()); var select = $('') .appendTo($(column.footer()).empty()) .on('change', function () { var val = $.fn.dataTable.util.escapeRegex($(this).val()); column.search(val ? '^' + val + '$' : '', true, false).draw(); }); column.data().unique().sort().each(function (d) { select.append(''); }); }); });