2020
10-08
10-08
解决qrcode.js生成二维码时必须定义一个空div的问题
根据qrcode的文档说明:https://github.com/davidshimjs/qrcodejs<divid="qrcode"></div><scripttype="text/javascript">newQRCode(document.getElementById("qrcode"),"sampletext");//ornewQRCode(document.getElementById("qrcode"),{text:'sampletext',width:200,height:200,colorDark:"#000000",colorLight:"#ffffff",correctLevel:QRCode.CorrectLevel.H});要有一个元素存放二维码,可以看到这个div中...
继续阅读 >