我有以下代码在pdf中添加页脚。
$(document).ready(function() {
$('#example').DataTable({
"dom": 'Bfirtlp',
buttons: [{
extend: 'pdfHtml5',
exportOptions: {
columns: [0, 1, 2],
},
customize: function(doc) {
var now = new Date();
var jsDate = now.toGMTString();
doc['footer'] = (function(page, pages) {
return {
columns: [{
alignment: 'left',
fontSize: '7',
text: ['Version: 1.0']
}, {
alignment: 'center',
fontSize: '7',
text: ['page ', {
text: page.toString()
}]
}
margin: 20
}
});
}
}
}]
});
});
如何在页脚中添加一行?