vue html2canvas截屏报Failed to execute ‘toD

vue 截屏报 to‘’ on ‘’
在vue中,使用和jsPDF完成截屏下载PDF功能,控制台会报如下报错信息:

vue html2canvas截屏报Failed to execute ‘toD

文章插图
【vue html2canvas截屏报Failed to execute ‘toD】 (in ) :to‘’ on ‘’:may not be .
vue html2canvas截屏报Failed to execute ‘toD

文章插图
只要在配置中添加就可以完美解决:
allowTaint: true,foreignObjectRendering: true