<script src="jquery.qrcode-0.7.0/demo/jquery-1.10.2.js" type="text/javascript"></script>
    <script src="jquery.qrcode-0.7.0/jquery.qrcode-0.7.0.min.js" type="text/javascript"></script>
    <style type="text/css">
        #pt div{float:left;margin-left:5px;margin-top:20px;}
    </style>
    <script type="text/javascript">
        var str = "我是谁 你呢?";
        $(window).ready(function () {
            //            $("#code").qrcode({
            //                render: "table", //table方式 
            //                width: 200, //宽度 
            //                height: 200, //高度 
            //                text: str //任意内容
            //            });
            for (var i = 1; i < 11; i++) {
                $("#pt").append("<div id='code" + i + "'></div>");
                $("#code" + i + "").qrcode({
                    render: "table", //table方式 
                    width: 150, //宽度 
                    height: 150, //高度 
                    text: str + i //任意内容
                });
            }
        });
    </script>
</head>
<body>
    <div style="width:630px;" id="pt">
        
    </div>
    <input type="button" onclick="document.execCommand('print')" value="hello"/>
    
</body>
</html