当前位置:网站首页>Generation of barcode and QR code
Generation of barcode and QR code
2022-04-23 16:58:00 【Endless cake】
Generation of bar code and QR code
Attach document address :https://download.csdn.net/download/weixin_39162041/12272441
These are three js library , When using, you only need to put three files in one directory , Go to the place where you need to generate QR code or bar code , Directly introducing index.js that will do , as follows :
html
notes : Because the generation uses canvas Generated , So which one to use , Add the generated tag on the page . Design your own style /
<canvas canvas-id="barcode" class='barcode' />
<canvas canvas-id="qrcode" class='qrcodes' />
js
// Introduce... On the page where you need to generate QR code index.js
let wxbarcode = require('../../libs/index.js');
notes : The following array is the width and height of the generated code ,res.data.data For data
wxbarcode.barcode('barcode', res.data.data, 580, 150);// Generate this barcode
wxbarcode.qrcode('qrcode', res.data.data, 400, 400);// This is to generate QR code
版权声明
本文为[Endless cake]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230554520215.html
边栏推荐
- 伪分布安装spark
- Selenium IDE and XPath installation of chrome plug-in
- 信息摘要、数字签名、数字证书、对称加密与非对称加密详解
- CentOS MySQL multi instance deployment
- ∑GL-透视投影矩阵的推导
- Node access to Alipay open platform sandbox to achieve payment function
- Do you really understand the principle of code scanning login?
- Dancenn: overview of byte self-developed 100 billion scale file metadata storage system
- 详解牛客----手套
- 众昂矿业:萤石浮选工艺
猜你喜欢
批量制造测试数据的思路,附源码
groutine
Idea of batch manufacturing test data, with source code
Detailed explanation of file operation (2)
如何建立 TikTok用户信任并拉动粉丝增长
Detailed explanation of information abstract, digital signature, digital certificate, symmetric encryption and asymmetric encryption
How to choose the wireless gooseneck anchor microphone and handheld microphone scheme
Use case labeling mechanism of robot framework
英语 | Day15、16 x 句句真研每日一句(从句断开、修饰)
Deepinv20 installation MariaDB
随机推荐
[PROJECT] small hat takeout (8)
[pimf] openharmony paper Club - what is the experience of wandering in ACM survey
SQL: How to parse Microsoft Transact-SQL Statements in C# and to match the column aliases of a view
Easyexcel reads the geographical location data in the excel table and sorts them according to Chinese pinyin
ACL 2022 | dialogved: a pre trained implicit variable encoding decoding model for dialogue reply generation
无线鹅颈麦主播麦手持麦无线麦克风方案应当如何选择
Get the column name list of the table quickly in Oracle
SQL database
Sub database and sub table & shardingsphere
正则过滤内网地址和网段
freeCodeCamp----prob_ Calculator exercise
STM32__03—初识定时器
VsCode-Go
【解决报错】Error in v-on handler: “TypeError: Cannot read property ‘resetFields’ of undefined”
How much do you know about the process of the interview
Generate random numbers with high quality and Gaussian distribution
Multithreaded @ async thread pool
Camtasia2022软件新增功能介绍
Shortcut keys (multiline)
Detailed explanation of information abstract, digital signature, digital certificate, symmetric encryption and asymmetric encryption