yueyongsheng

引用2个JS:

jquery.min.js

qrcode.min.js(提取连接:https://pan.baidu.com/s/121lVT9YKBJVLkpK3RogVSQ 提取码 1234)

<div id="qrcode" style="border:solid 10px #fff;"></div>
    $(function () {
        
        new QRCode(document.getElementById("qrcode"), id.toString());

        //自己定义
        //var qrcode = new QRCode(document.getElementById("qrcode"), {
        //    text: id.toString(),
        //    width: 180,
        //    height: 180,
        //    correctLevel: 0 // 二维码结构复杂性 0~3
        //});
    })

 

 

分类:

技术点:

相关文章: