代码拉取完成,页面将自动刷新
A Vue.js project
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
官方demo:http://mozilla.github.io/pdf.js/web/viewer.html
%PDF-1.4
5 0 obj
<< /Type /Page
/Parent 3 0 R
/Resources 4 0 R
/Contents 6 0 R
/MediaBox[ 0 0 595.3 841.9 ]
/CropBox[ 0 0 595.3 841.9 ]
/Rotate 0endobj
6 0 obj
<< /Length 273 /Filter /FlateDecode >>
.......还有很多这种码
这种带有参数的url必须编码,encodeURIComponent了解一下,当然以流的方式在浏览器打开是进行下载的,pdf.js也是可以进行预览,而不下载。
// 启动项目
npm install or cnpm install
npm run dev
For a detailed explanation on how things work, check out the guide and docs for vue-loader.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。