This commit is contained in:
pplokijuhyg 2020-02-11 14:17:37 +08:00
parent 2b623a0970
commit df49674cf5

View File

@ -36,3 +36,6 @@ console.log(canvas2.style.width)
html2canvas参数参考官网 重点介绍canvas那一部分
context.scale(x 倍数, y 倍数); //画板放大指定倍数
canvas2.width = w * times * window.devicePixelRatio; //指定画板宽度
canvas2.height = h * times * window.devicePixelRatio; //指定画板宽度