使用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

posted @ 2022-08-10 14:41  崛起崛起  阅读(133)  评论(0)    收藏  举报