从应用程序URL生成PDF时,我依赖本地存储。我使用以下代码:
var wkhtmltopdf = require('wkhtmltopdf');
wkhtmltopdf(
'http://localhost:8081/ui/main/app/home.html#/analytics/student-report',
{
noStopSlowScripts:true,
javascriptDelay:5000,
viewportSize: '1280x1024',
output: 'out3.pdf',
orientation:'Landscape'
}, function (code, signal) {
return callback(null,{code:code,signal:signal})
}
);
有没有办法模拟本地存储。