使用qrcode.js生成二维码
<script src="qrcode.js"></script>
<div id="obj"></div>
<script>
var obj = document.getElementById("obj");
var url = "http:www.jianshu.com";
var qrcode = new QRCode(obj, {
width : 80,
height : 80
});
qrcode.makeCode(url);
</script>
网友评论