wx.downloadFile下载文件bin格式?

发布于 7 年前作者 min6213059 次浏览最后编辑 7 年前来自 ask

微信小程序下载文件格式为bin格式,请问是什么原因呢?

    wx.downloadFile({

            url: e.currentTarget.dataset.url,

            success: (res) => {

                console.log(res)

                let tempFilePath = res.tempFilePath;

                wx.openDocument({

                    filePath: tempFilePath

                })

            },

            fail: () => { },

            complete: () => { }

        });

1 回复