<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ### 生成條形碼方法 **位置:** Public\Base\js\coscia.js **參數:** * @param position 條形碼顯示的元素位置 * @param width 條形碼線的寬度 * @param height 條形碼的高度 * @param text 條形碼的內容 **調用:** ~~~ 插件引入: <script language="javascript" src="__PUBLIC__/plug/barcode/jquery-barcode.js"></script> <script language="javascript" src="__PUBLIC__/plug/jqprint/jquery.jqprint-0.3.js"></script> <script language="javascript" src="__PUBLIC__/plug/jqprint/jquery-migrate-1.2.1.min.js"></script> 方法調用: createQrCodes(position, width, height, text); ~~~ **完整代碼:** ~~~ /** * * 封裝 生成條形碼 * @param position 條形碼顯示的元素位置 * @param width 條形碼線的寬度 * @param height 條形碼的高度 * @param text 條形碼的內容 * Lanson 2018-03-15 * **/ function createBarCodes(position, width, height, text) { position.empty().barcode(text, 'code93',{barWidth:width, barHeight:height, showHRI:false}); } ~~~ **調用示范:** ~~~ // 打印 商品列表 function goodsPrint(e) { var val = ''; var num = 0; $("input[name='subBox'] ").each(function(index,element) { if ($(this).prop('checked')) { val += $(this).val() + ','; num = num + 1; } }); if(val == ''){ alert('打印預覽需請先勾選商品!'); return false; } var url = $(e).attr('url'); $.post(url, {id: val}, function(result){ $('#print_content').empty().append(result); for(var i = 0;i<num;i++){ // 調用封裝的生成二維碼方法 Lanson 2018-03-15 createQrCodes($('#output_'+i), 120, 110, $('#qrcode_'+i).val()); // 調用封裝的生成條形方法 Lanson 2018-03-15 createBarCodes($('#bcTarget_'+i), 1, 30, $('#src_'+i).val()); $("#no_"+i).empty().text($("#src_"+i).val()); } // 對元素內容進行打印 $('#print_content').jqprint(); }); } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看