wx.openDocumenc 打开 doc 、xls 时,有时候会提示"文件已损坏或未知文件格式"。 原因主要是文档的版本太久,微信不支持。建议采用兼容的方式处理,指定以 docx 的格式打开 doc,以 xlsx 的格式打开 xls。 示例代码: let fileExt = this.file.file_ext if (fileExt === 'doc' || fileExt === 'xls' || fileExt === 'ppt') { fileExt += 'x' } wx...
blog.jayinton.com1 min readNo responses yet.