function download(method, url) {
var xhr = new XMLHttpRequest();
xhr.open(method, url);
xhr.responseType = 'blob';
xhr.onload = function () {
const fileName
下载文件 需要header携带token
最新推荐文章于 2023-11-09 17:25:06 发布
function download(method, url) {
var xhr = new XMLHttpRequest();
xhr.open(method, url);
xhr.responseType = 'blob';
xhr.onload = function () {
const fileName