简体   繁体   English

jQuery中的条形码设置

[英]Barcode Settings in Jquery

I am using jquery-barcode. 我正在使用jquery-barcode。 The following code works in a way: 以下代码以某种方式工作:

    <!DOCTYPE HTML>
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="../css/print.css">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
    <script src="../javascript/print.js" type="text/javascript"> </script>
        <script src="../javascript/jquery.barcode.0.3.js" type="text/javascript"> </script>

    <body>

    <div id="bcTarget" ></div>   

    <script>$("#bcTarget").barcode("7100000000", "code39"); </script>
    </body>

<html>

The barcode displays but it looks like only part of the barcode. 显示条形码,但看起来仅是条形码的一部分。 There are only 10 bars. 只有10个酒吧。 But when I try the same number through several online 3 of 9 barcode generators, I get many times that amount of bars. 但是,当我通过9个条形码生成器中的多个在线3个尝试相同的数字时,我得到的条形码数量是原来的许多倍。

I saw some mentions of settings, but don't understand how to implement them given the current code. 我看到了一些设置的提法,但是在当前代码下不理解如何实现它们。

After downloading the current version of JQUERY PLUGIN : BARCODE from 从下载最新版本的JQUERY PLUGIN:BARCODE后

http://barcode-coder.com http://barcode-coder.com

I was able see see a fully featured barcode using your code. 我可以使用您的代码看到功能齐全的条形码。 This site also gives a full description of the barcode api and examples of different barcode settings. 该站点还提供了条形码api的完整说明以及不同条形码设置的示例。

<script src="../javascript/jquery.barcode.2.0.3.js" type="text/javascript"> </script>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM