js 二维码生成 插件

<div onclick="liaotian()">点击生成二维码</div>
<div id="qrcode"></div>
    <script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
     <script type="text/javascript" src="Public/zui/js/qrcode.js"></script>
<script type="text/javascript">
    function liaotian(){
      url = window.location.href;
      alert(url);
     var qrcode = new QRCode("qrcode", {
            render: "canvas",
            text: url,
            width: 150,
            height: 150
        });

         $('#qrcode img').get(0);
 
    }
</script>

上一篇:无法将“Scaffold-DbContext”项识别为 cmdlet、函数、脚本文件或可运行程序的名称...


下一篇:WCF寄宿IIS