4 回复
是让管理员在后台打开权限,然后调用这个api
wx.downloadFile({
url: 'http://example.com/somefile.pdf',
success: function (res) { var filePath = res.tempFilePath
wx.openDocument({
filePath: filePath,
success: function (res) { console.log('打开文档成功')
}
})
}
})
