uni.downloadFile({
url: doc_url,
success: function(res) {
var filePath = res.tempFilePath;
uni.openDocument({
filePath: filePath,
success: function(res) {
console.log("打开文档成功");
},
});
},
});
uniapp 预览文档
最新推荐文章于 2024-07-22 15:36:23 发布