Commit 5eb2cd34 authored by zhangyanni's avatar zhangyanni

提交生成图片

parent 9c862382
......@@ -145,7 +145,7 @@
canvas.style.height = h*2 + "px";
}
html2canvas(img, {
(window.html2canvas || html2canvas)(img, {
canvas: canvas,
backgroundColor: "#fff",
useCORS: true, // 允许图片跨域
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment