1、wxml中
<canvas style="width: 200px; height: 200px;" canvas-id="myQrcode">
2、js
若是项目使用了wepy
npm install weapp-qrcode --save
import drawQrcode from 'weapp-qrcode'
1、wxml中
<canvas style="width: 200px; height: 200px;" canvas-id="myQrcode">
2、js
若是项目使用了wepy
npm install weapp-qrcode --save
转载于:https://www.cnblogs.com/lingshan168/p/10412023.html