大部分是正常的,小部分非正常
wx.downloadFile({
url: "https://sjcx.dg.cn/uploads/20201207/27571956120ad946d9074a4bce7c433e.docx",
success: res => {
const filePath = res.tempFilePath;
wx.openDocument({
filePath: filePath,
success: function (res) {
// console.log("打开文档成功")
},
fail: function (res) {
wx.showToast({title: '打开文档失败', icon: 'none', duration: 2000})
},
})
},
fail: res => {
console.log(res);
},
});