|
|
1 yıl önce | |
|---|---|---|
| .. | ||
| demo | 1 yıl önce | |
| .editorconfig | 1 yıl önce | |
| .eslintrc.yml | 1 yıl önce | |
| .gitattributes | 1 yıl önce | |
| .travis.yml | 1 yıl önce | |
| LICENSE | 1 yıl önce | |
| README.md | 1 yıl önce | |
| capture.png | 1 yıl önce | |
| index.js | 1 yıl önce | |
| package.json | 1 yıl önce | |
uniapp小程序生成条码和二维码模块。
$ npm install uniapp-qrcode
import wxcode from 'uniapp-qrcode'
wxcode.barcode('barcode', '1234567890123456789', 680, 200);
wxcode.qrcode('qrcode', '1234567890123456789', 420, 420);
函数名:barcode
函数原型:barcode(id, code, width, height)
参数:
函数名:qrcode
函数原型:qrcode(id, code, width, height)
参数:
请参考demo文件夹下代码。