leaves note

write by a programer

 

var table=dom.DataTable();


销毁 table.destroy();


移除行 table.row('行dom').remove().draw()


移除列 table.column(0).visible(false)


更新html内容后重新调用


table=dom.DataTable();


autoWidth:false,

paging:false,

info:false,

scrollY:'400px',

tbody范围能滚动配置


$('#example').dataTable( {
	"paging": false
} );

分页开关


//分列排序

$('#example').dataTable( {
    "order": [[ 0, 'asc' ], [ 1, 'asc' ]]

} );



"info":false  右下角信息隐藏

配置(Options)