docs: 批量博文

This commit is contained in:
杭城小刘
2020-02-25 17:46:51 +08:00
parent 8e5d2c9e7f
commit 6e99436a9e
373 changed files with 18071 additions and 1116 deletions

View File

@@ -0,0 +1,10 @@
# H5页面保存页面为图片
方案有个github的js库可以将html转换为canvas然后canvas可以转换为图片然后图片可以下载所以基本路线就是
* html2canvas.js 将htmldom转为canvas [https://github.com/niklasvh/html2canvas](https://github.com/niklasvh/html2canvas "html2canvas")
* canvasAPI toDataUrl\(\)将canvas转为base64格式
* 图片下载
具体描述https://juejin.im/post/5a17c5e26fb9a04527254689