|
|
il y a 1 an | |
|---|---|---|
| .. | ||
| demo | il y a 1 an | |
| .editorconfig | il y a 1 an | |
| .eslintrc.yml | il y a 1 an | |
| .gitattributes | il y a 1 an | |
| .travis.yml | il y a 1 an | |
| LICENSE | il y a 1 an | |
| README.md | il y a 1 an | |
| capture.png | il y a 1 an | |
| index.js | il y a 1 an | |
| package.json | il y a 1 an | |
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文件夹下代码。