怎么就没人回答啊?我也遇到了这个问题 [代码]wx.downloadFile({ url: 'http://example.com/somefile.pdf',[代码][代码] success: function (res) { [代码] [代码] var filePath = res.tempFilePath[代码] [代码] wx.openDocument({ filePath: filePath,[代码][代码] success: function (res) { [代码] [代码] console.log('打开文档成功')[代码] [代码] } }) } })[代码]wx.downloadFile是成功了的filePath 也有值,但是到wx.openDocument就报错、到fail里面去了: wx.openDocument:fail file type not supported 2003 我也是IOS可以,安卓就报这个错
安卓环境下wx.openDocument抛错!打开word文档安卓环境下:openDocumnet:fail file type not supported 2003,IOS正常能打开[图片]
2018-06-13