摘要:
download(data, name, type) { const b = new Blob([data]) // 拿到文件流下载对象, 有的定义不需要.data,根据后端返回字段定 const url = window.URL.createObjectURL(b) // 生成文件流下载链接 co 阅读全文
posted @ 2023-09-08 08:54
larry-wang
阅读(108)
评论(0)
推荐(0)
摘要:
base64转blob: //dataurl:base64的url fileType:要转的文件类型 urlToBlob (dataurl, fileType) { dataurl = dataurl.replace('-', '+').replace('_', '/').split(';base6 阅读全文
posted @ 2023-09-08 08:52
larry-wang
阅读(112)
评论(0)
推荐(0)

浙公网安备 33010602011771号