QRCode.js:使用 JavaScript 生成二维码
作者:互联网
http://www.runoob.com/w3cnote/javascript-qrcodejs-library.html
<script type="text/javascript" src="http://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="http://static.runoob.com/assets/qrcode/qrcode.min.js"></script>
<div id="qrcode" style="width:100px; height:100px; margin-top:15px;"></div>
<script type="text/javascript">
var qrcode = new QRCode(document.getElementById("qrcode"), {
width : 100,
height : 100
});
function makeCode () {
var text = '内容';
qrcode.makeCode(text);
}
makeCode();
</script>
标签:var,makeCode,text,JavaScript,js,qrcode,QRCode,100 来源: https://blog.csdn.net/qq_36602939/article/details/88053146