wx.downloadFile({ url: fileUrl,//pdf链接success(res) {wx.openDocument({ //打开文档filePath: res.tempFilePath,fileType: "pdf",//文档类型showMenu: true,success: function (res) {wx.showToast({title: '打开文档成功',})},fail: function (res) {wx.showToast({title: '打开文档失败',})},})},})