html2canvas 采坑(html2canvas源码解析)
1.需要将要转换成图片的区域div放置在body中,且需要display为block;2.图片跨域的问题:将icon转换为base643.截图不全:新版本插件不稳定,建议<script src="https://cdn.bootcss.com/html2canvas/0.5.0-alpha1/html2canvas.min.js"></script>多尝试几个版本