Variables In Jspdf
how can I use a variable in jsPDF? var doc = new jsPDF(); doc.text(20, 20, 'variablehere'); I have tried many different capabilities like ' + variable + ', but no one worked for
Solution 1:
Just like you would for any other function.
var variable = 'test';
doc.text(20, 20, variable);
There's nothing special about library functions.
Post a Comment for "Variables In Jspdf"