使用Qrcode生成二维码
let canvas = document.getElementById('canvas');
let width = document.clientWidth;
let w = (234/1920)*width;
QRCode.toCanvas(canvas, this.EWM + url + '?activityCode='+code,
{
errorCorrectionLevel: 'L',
// version: 20,
margin:2,
scale:8,
width:w,
color:{
// dark:'#f00',
// light:'#ff0'
}
},
https://blog.csdn.net/weixin_44540155/article/details/91348547

浙公网安备 33010602011771号