2
내 내보내기 버튼에 문제가 있습니다. 첫 번째 jQuery 테이블에서만 작동하지만 다른 테이블에서는 작동하지 않습니다.jqueryTabs 및 TableTool을 사용하여 내보내기가 작동하지 않습니다.
나는 포함해야 할 것을 모두 포함했습니다. 나는 두 테이블에 대한 jQuery2 변수를 사용하지 않고 별도 datatables 전화 제안
var jQuery2 = jQuery.noConflict();
jQuery2(document).ready(function() {
jQuery2('#t1').dataTable({
"bJQueryUI": true,
"bScrollCollapse": true,
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"aButtons": [
"copy",
"csv",
"xls",
{
"sExtends": "pdf",
"sPdfOrientation":"landscape",
"sPdfMessage": "Your custom message would go here."
},
"print"
]
}
});
jQuery2('#t2').dataTable({
"bJQueryUI": true,
"bScrollCollapse": true,
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"aButtons": [
"copy",
"csv",
"xls",
{
"sExtends": "pdf","sPdfOrientation": "landscape",
"sPdfMessage": "Your custom message would go here."
},
"print"
]
}
});
});
없음 난 아마 직접 초기화와 다른 변수 이름을하려고 – theboss
다른 JQuery와 fonctions 일부 충돌이 없다 할 수 없기 때문에 : http://datatables.net/extras/tabletools/initialisation – Adunahay
그것은 작동하지 않습니다 – theboss