利用浏览器自带的浏览器文件功能
<button @click="previewPDF">预览PDF</button>
const previewPDF = () => {let url = `http://mozilla.github.io/pdf.js/web/compressed.tracemonkey-pldi-09.pdf`;window.open(url, "_blank");};
pdf链接来源:/prey1025/article/details/90029284
时间:2023-04-18 08:35:57
<button @click="previewPDF">预览PDF</button>
const previewPDF = () => {let url = `http://mozilla.github.io/pdf.js/web/compressed.tracemonkey-pldi-09.pdf`;window.open(url, "_blank");};
pdf链接来源:/prey1025/article/details/90029284