随笔分类 - 兼容性问题
摘要:function downloadImg(type,data,name){ if(type == 1){ var url = data //通过地址判断是否为图片类型文件 var ext = url.slice(url.lastIndexOf('.')+1).toLowerCase() if(isI
阅读全文
摘要:fetch(url,options).then(res => res.blob().then((blob)=>{ if(window.navigator.msSaveOrOpenBlob){//兼容IE下载 try{ window.navigator.msSaveOrOpenBlob(blob,fi
阅读全文