记录Pdfh5的使用方法
文章目录
<template>
<div id="pdfId"></div>
</template>
<script>
import Pdfh5 from 'pdfh5';
import "pdfh5/css/pdfh5.css"
export default{
data(){
return {
pafh5:null
}
},
mounted(){
this.showPdf()
},
methods:{
showPdf(){
// 实例化
this.pafh5=new Pdfh5('#pdfId',{
pdfurl:'具体的pdf的url'
})
}
}
}
</script>当前pdfh5插件的版本号为1.3.20

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册⭐️ Admin快速开发: https://show.cool-admin.com/
赞 0⭐️ 官方文档: https://cool-js.com
赞 0⭐️ chatgpt在线体验: https://cool-js.com/ai/chat-vip/index.html?r=helloworld
赞 0