我得到一个空的pdf:
InvoicePDF(){
return (
<div>
<Invoice
invoice={invoice}
customer={customer}
company={company}
notes={
<p>
If you have any questions, please email{" "}
<a href="mailto:contact@shakeshack.com">contact@shakeshack.com</a>.
</p>
}
/>
</div>
);
}
/ . . .
const doc = new jsPDF();
doc.fromHTML(ReactDOMServer.renderToStaticMarkup(this.InvoicePDF()));
doc.save("SecondTestGenerator.pdf");
一个空的PDF !!
请问有人能帮助我在jsPdf
函数中使该函数可读吗