我想用openDocument打开word、pdf文档 但好像不能是本地路径? downloadFile也不能下载本地路径?
wx.downloadFile({
url: '../../docs/111.docx',
success: function (res) {
console.log(res)
var filePath = res.tempFilePath
wx.openDocument({
filePath: filePath,
success: function (res) {
console.log('打开文档成功')
}
})
}
})
相似问题