使用步骤
1.安装 qrcodejs2(注意: 安装的是qrcodeis2,不要安装 grcodeQ -> 会报错)
npm install qrcodejs2 --save
2.
3.注意引入的时候:
注意: 在需要调用的地方 这样必须这样调用 否则会出现 appendChild null就是d为rcode的dom获取不到,返回结果为null
this.$nextTick (function () { this.qrcode(); })
使用步骤
1.安装 qrcodejs2(注意: 安装的是qrcodeis2,不要安装 grcodeQ -> 会报错)
npm install qrcodejs2 --save
2.
3.注意引入的时候:
注意: 在需要调用的地方 这样必须这样调用 否则会出现 appendChild null就是d为rcode的dom获取不到,返回结果为null
this.$nextTick (function () { this.qrcode(); })