wx.downloadFile下载文件bin格式?
发布于 6 年前 作者 min62 12833 次浏览 来自 问答

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

    wx.downloadFile({

            url: e.currentTarget.dataset.url,

            success: (res) => {

                console.log(res)

                let tempFilePath = res.tempFilePath;

                wx.openDocument({

                    filePath: tempFilePath

                })

            },

            fail: () => { },

            complete: () => { }

        });

回到顶部