ehanlin_printcard
v1.0.18
Published
練習實作一個列印卡片的程式
Downloads
1
Readme
Usage
Download
npm i @skye_tseng/ehanlin_printcard
引入
<script type="text/javascript" src="../node_modules/jquery/dist/jquery.min.js"</script>
<script type="text/javascript" src="../dist/PrintCard.bundle.js"></script>
建立物件
PrintCard.render(element); //element傳入要綁上的html element,預設不傳入是body
添加欲列印之卡片
PrintCard.addAll(array); //object array
PrintCard.addOne(object); //屬性如下
//{ "name": ,"login": ,"password":, "url": ,"logo": }
清空頁面
PrintCard.clean();