api: wx.downloadFile
开发工具 v1.02.1911180
基础库: 2.9.2
wx.downloadFile({
url: '链接',
header: {'Content-Type':'application/pdf'},
success: function(res) {
console.log('下载成功', res);
const tempFilePath = res.tempFilePath;
在postman和浏览器请求时下载的都是pdf格式的文件
api: wx.downloadFile
开发工具 v1.02.1911180
基础库: 2.9.2
wx.downloadFile({
url: '链接',
header: {'Content-Type':'application/pdf'},
success: function(res) {
console.log('下载成功', res);
const tempFilePath = res.tempFilePath;
在postman和浏览器请求时下载的都是pdf格式的文件
1 个回答
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)