在线预览office和pdf
office文件可以使用office的官方在线预览API:在链接前拼上‘https://view.officeapps.live.com/op/view.aspx?src=’pdf直接用ifram
office文件可以使用office的官方在线预览API:在链接前拼上‘https://view.officeapps.live.com/op/view.aspx?src=’
<iframe src='https://view.officeapps.live.com/op/view.aspx?src=http://storage.xuetangx.com/public_assets/xuetangx/PDF/1.xls' width='100%' height='100%' frameborder='1'>
</iframe>
pdf直接用iframe调用浏览器自带的,
<iframe v-if="currentTypeFile.currentFile.currentImg && currentTypeFile.currentFile.urlType == 'pdf'" :src="currentTypeFile.currentFile.currentImg"></iframe>
相关文章
发表评论
评论列表
- 这篇文章还没有收到评论,赶紧来抢沙发吧~