摘要: 1.版本 "dom-to-image": "^2.6.0", // or "html2canvas": "^1.4.1", 2.引入 import domtoimage from 'dom-to-image'; // or import html2canvas from 'html2canvas'; 阅读全文
posted @ 2023-08-30 09:46 Deer_Lin 阅读(1179) 评论(0) 推荐(0)
摘要: /** base64转换成blob数据 */ base64ToBlob(dataUrl, type) { var arr = dataUrl.split(','); var mime = arr[0].match(/:(.*?);/)[1] || type; // 去掉url的头,并转化为byte 阅读全文
posted @ 2023-08-30 09:37 Deer_Lin 阅读(330) 评论(0) 推荐(0)