1.页面
document.getElementById("qrCode").innerHTML = "";
setTimeout(() => {
new QRCode(this.$refs.qrCodeDiv, {
text: ‘http://wxshop.carmanclub.com.cn/web/drawPrize/index.html?key_code=‘ + 123456789,
width: 200,
height: 200,
colorDark: "#333333", //二维码颜色
colorLight: "#ffffff", //二维码背景色
correctLevel: QRCode.CorrectLevel.L//容错率,L/M/H
})
}, 100)
原文:https://www.cnblogs.com/cengjingdeshuige/p/10551629.html