摘要: function previewImgByUrl(url: string) { getBlob(url, (blob) => { previewImg(blob); }) } function getBlob(url, cb) { const xhr = new XMLHttpRequest(); 阅读全文
posted @ 2022-03-10 14:45 城南以南123 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 二进制流文件下载 function downloadFileByBinary(fileKey: string, fileName: string) { axios({ method: 'get', url: 'xxxx', params: { fileKey: fileKey }, headers: 阅读全文
posted @ 2022-03-10 14:40 城南以南123 阅读(376) 评论(0) 推荐(0) 编辑