html2canvas生成数据为“data:,“

原因
页面处于隐藏状态,无法获取到对应的元素。
解决办法
在页面显示状态生成base64数据,然后再隐藏页面。

猜你喜欢

转载自blog.csdn.net/qq_40557812/article/details/107470571