oppr11s 按官方代码预览pdf不生效
wx.downloadFile({ url: data.content.pdfUrl, success: function(res) { wx.showToast({ title: ‘下载完毕’ }) var filePath = res.tempFilePath wx.openDocument({ filePath: filePath, success: function(res) { console.log(‘打开文档成功’) } }) } })
wx.downloadFile({ url: data.content.pdfUrl, success: function(res) { wx.showToast({ title: ‘下载完毕’ }) var filePath = res.tempFilePath wx.openDocument({ filePath: filePath, success: function(res) { console.log(‘打开文档成功’) } }) } })