摘要: fetch(url).then(res => res.blob()).then(blob => { const a = document.createElement('a') document.body.appendChild(a) a.style.display = 'none' const ur 阅读全文
posted @ 2022-12-10 10:38 小万子呀 阅读(19) 评论(0) 推荐(0) 编辑
摘要: module.exports = function(data, filename, mime, bom) { var blobData = (typeof bom !== 'undefined') ? [bom, data] : [data] var blob = new Blob(blobData 阅读全文
posted @ 2022-12-10 09:00 小万子呀 阅读(136) 评论(0) 推荐(0) 编辑