qrcodejs 生成二维码图片
点击生成二维码
var qr = document.getElementById(“qrcode”); var btn = document.getElementById(“btn”); var url = document.getElementById(“url”); btn.onclick = function(){setQRCode(text.value)}; function setQRCode(url){ qr.innerHTML = “”; var qrcode = new QRCode(qr, { text: url, width: 300, height: 300, colorDark : “#000000”, colorLight : “#ffffff”, correctLevel : QRCode.CorrectLevel.H }); } btn.click();
qrcodejs 生成二维码图片
http://example.com/2016-04-07 qrcodejs-生成二维码图片插件/