摘要:
传数组参数:xhr.send(JSON.stringify(Array)) const xhr = new XMLHttpRequest(); xhr.open('POST', '/test', true); // 设置请求头要放在 open 和 send 之间 xhr.setRequestHead 阅读全文
posted @ 2021-08-10 16:04
W1N9s
阅读(3198)
评论(0)
推荐(0)
摘要:
下载 excel 文件,无法打开 原因:responseType: 'blob' 配置不正确 axios({ url: '/test', method: 'post', responseType: 'blob', data: {}, haeders: {}, }) .then((res) => { 阅读全文
posted @ 2021-08-10 15:58
W1N9s
阅读(1125)
评论(0)
推荐(0)
浙公网安备 33010602011771号