Nested tables in a pdf using jspdf and jspdf-autotable
问题 How to achieve nested tables in a PDF using jspdf and jspadf-autotable? Something similar to the picture below: 回答1: There is no native support for having nested tables in jspdf-autotable but you can draw any content (including other autotables) with the didDrawCell hook. var elem = document.getElementById("generate"); elem.onclick = function () { var doc = new jsPDF(); doc.autoTable({ html: '#table', didDrawCell: function (data) { if (data.column.dataKey === 5 && data.cell.section === 'body'