// 由于图片跨域导致不显示
// 设置属性 allowTaint: true,useCORS: true 解决跨域问题
// backgroundColor: "transparent" 如果页面图片底色为透明,可设置,否则 图片底色默认白色
html2Canvas(document.getElementById(`id`),{
allowTaint: true,
useCORS: true
}).then(function (canvas) {})
生成pdf ,图片不显示问题
最新推荐文章于 2024-03-20 00:16:51 发布