如何防止带有数据表的打印按钮打开另一个选项卡?
并在同一页中而不是在新标签页中打印表格!
我的jQuery代码:
$('#college_user').dataTable({
dom: 'lBfrtip',
buttons: [
{ extend: 'print', text:'',className: 'print',filename: 'College_user', title: 'College Users', titleAttr: 'Print' },
],
responsive: true,
colReorder: true,
stateSave: true,
stateSaveCallback: function(settings, data) {
update_customize_table_settings('college_user','college_user');
},
});
预先感谢!