简介 目录 评价 推荐
  • 慕侠0494893 2020-02-12

    jquery生成QR Code

    引入jquery.qrcode.min.js文件

    <!DOCTYPE html>

    <html>

    <head>

        <title>qrcode</title>

    </head>

    <body>

        <div id="qrcode"></div>

        <script src="jquery.min.js"></script>

        <script src="jquery.qrcode.min.js"></script>

        <script type="text/javascript">

            $("#qrcode").qrcode("this is a qrcode");

            $("#qrcode").qrcode({width:64, height:50, text:"this is a qrcode"});

        </script>

    </body>

    </html>


    0赞 · 0采集
  • ailinier 2018-02-24
    <script type="text/javascript" src="jquery.qrcode.min.js"></script> <div id="qrcode"></div> jquery('#qrcode').qrcode("this plugin is great");
    0赞 · 0采集
  • 野生码农在线co腚 2018-01-26
    <script type="text/javascript"> function utf16to8(str) { var out, i, len, c; out = ""; len = str.length; for(i = 0; i < len; i++) { c = str.charCodeAt(i); if ((c >= 0x0001) && (c <= 0x007F)) { out += str.charAt(i); } else if (c > 0x07FF) { out += String.fromCharCode(0xE0 | ((c >> 12) & 0x0F)); out += String.fromCharCode(0x80 | ((c >> 6) & 0x3F)); out += String.fromCharCode(0x80 | ((c >> 0) & 0x3F)); } else { out += String.fromCharCode(0xC0 | ((c >> 6) & 0x1F)); out += String.fromCharCode(0x80 | ((c >> 0) & 0x3F)); } } return out; } </script> <script type="text/javascript"> $('#qrcode').qrcode(utf16to8(" this is test 慕课网 ")); $('#qrcode').qrcode({width: 64,height: 64,text:utf16to8('this is test 慕课网') }); </script>
    0赞 · 0采集
  • 奋斗的菜鸟飞起来 2017-11-02
    在使用jquery.qrcode.js生成二维码时一直无法生成,且报错“jQuery is not defined”,仔细查看后找到原因,是因为我将jquery.qrcode.min.js放在了jquery.min.js前面进行加载,检测不到jquery才报错。
    0赞 · 0采集
  • 小学弟啦啦啦 2017-10-30
    http://blog.jetienne.com/blog/2011/04/07/jquery-qrcode/
    0赞 · 0采集
  • 小桃bilibeng 2017-10-19
    http://blog.jetienne.com/blog/2011/04/07/jquery-qrcode/
    0赞 · 0采集
  • 慕婉清5951372 2017-10-10
    http://blog.jetienne.com/blog/2011/04/07/jquery-qrcode/
    0赞 · 0采集
  • bluceleeoo 2017-09-25
    www.bootcdn.cn; <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script> 将 jquery 改为$
    截图
    0赞 · 0采集
  • bluceleeoo 2017-09-25
    bug,第5个参数返回值需要去掉false;qrencode.php286行
    0赞 · 0采集
数据加载中...
开始学习 免费