发布于 4个月前

js生成二维码

github地址 https://github.com/davidshimjs/qrcodejs

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
    </head>
    <body>
        <div id="qrcode"></div>
        <script type="text/javascript" src="qrcode.js"></script>
        <script type="text/javascript">
            new QRCode(document.getElementById("qrcode"), "https://github.com/davidshimjs/qrcodejs");
            var qrcode = new QRCode(document.getElementById("qrcode"), {
                text: "生成二维码的方法不止一种",
                width: 128,
                height: 128,
                colorDark : "#f60",
                colorLight : "#ccc",
                correctLevel : 0 // 二维码结构复杂性 0~3
            });
        </script>
    </body>
</html>
©2020 edoou.com   京ICP备16001874号-3