qrcode-xizaozao
v1.0.2
Published
生成的二维码浏览器打开可下载
Downloads
3
Readme
html
<canvas ref="canvas" width="200" height="200" id="canvas"></canvas>
js
import { QRCodeDraw } from 'qrcode-xizaozoa'
let qrcodedraw = new QRCodeLib.QRCodeDraw()
qrcodedraw.draw(
this.$refs.canvas,
this.value,
{
errorCorrectLevel:"H",// ['L','M','Q','H'] 质量由低到高 L =》 LOW H
margin:10,
backgroundColor:"#fff",
color:'#000',
scale:10
},
(error,canvas,width) => {
// this.generated = true
})
demo
http://qrcode.xizaozao.vip/