POST请求文件下载
fetch(url, {
method: 'POST',//或者为GET
body: JSON.stringify(params),
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
}).then(function (response) {
const filename = response.headers.get('content-disposition').split(';')[1].split('.
原创
2021-04-15 17:47:19 ·
1250 阅读 ·
0 评论