摘要: 下载: $http.get('/receivePDFUrl', {responseType: 'arraybuffer'}) // 设置$http get请求的responseType为arraybuffer .success(function(data){ var file = new Blob( 阅读全文
posted @ 2020-02-04 15:17 空空复空空 阅读(2823) 评论(0) 推荐(0) 编辑
摘要: (function(w){ w.downloadBlob = function download(blob,fileName){ const url = window.URL.createObjectURL(blob); const a = document.createElement('a'); 阅读全文
posted @ 2020-02-04 11:48 空空复空空 阅读(740) 评论(0) 推荐(0) 编辑