记录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

评论

h
hw_7864

⭐️ Admin快速开发: https://show.cool-admin.com/

赞 0
h
hw_7864

⭐️ 官方文档: https://cool-js.com

赞 0
h
hw_7864

⭐️ chatgpt在线体验: https://cool-js.com/ai/chat-vip/index.html?r=helloworld

赞 0