后台接受的数据流怎么处理

61 阅读1分钟

 const link = document.createElement("a");           let blob = new Blob([res], { type: "application/vnd.ms-excel" });           let objectUrl = URL.createObjectURL(blob);           link.style.display = "none";           link.href = URL.createObjectURL(blob);           link.download = "名字.xlsx";           document.body.appendChild(link);           link.click();           document.body.removeChild(link);