2020年4月3日

图片 base64 file blob 之间相互的转化

摘要: //base64码转化为文件 // dataURLtoFile(dataurl, filename) { // let arr = dataurl.split(','); // let mime = arr[0].match(/:(.*?);/)[1]; // let bstr = atob(arr 阅读全文

posted @ 2020-04-03 15:01 liuhao1992 阅读(712) 评论(0) 推荐(0) 编辑

vant 上传图片加水印

摘要: afterReadVideo(file, fileList) { console.log(file) let _this = this; let fileUp = file.file; file.status = 'uploading'; file.message = '上传中...'; var s 阅读全文

posted @ 2020-04-03 09:09 liuhao1992 阅读(783) 评论(3) 推荐(0) 编辑

导航