|
|
4 years ago | |
|---|---|---|
| .gitignore | 4 years ago | |
| LICENSE | 4 years ago | |
| README.md | 4 years ago | |
| qrcode_base64.js | 4 years ago |
基于 base64 编码输出二维码
const QR = require('./utils/weapp-qrcode')
const base64 = QR.drawImg(content, {
version: 1, //最大40
errorCorrectLevel: 'M',
color: '#3d0d83', //支持rgb
background: '#fff',//支持rgb
padding: 1,
size: 200 //请用正整数
})