摘要:
function previewImgByUrl(url: string) { getBlob(url, (blob) => { previewImg(blob); }) } function getBlob(url, cb) { const xhr = new XMLHttpRequest(); 阅读全文
摘要:
二进制流文件下载 function downloadFileByBinary(fileKey: string, fileName: string) { axios({ method: 'get', url: 'xxxx', params: { fileKey: fileKey }, headers: 阅读全文