<html lang="en">
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="JsBarcode.all.js"></script>
<script src="qrcode.min.js"></script>
</head>
<body>
<img id="bcode"/>
<hr>
<div id="qrcode"></div>
</body>
<script>
$("#bcode").JsBarcode("283512348645177031");//or JsBarcode("#barcode", "283512348645177031");
</script>
<script>
var qrcode = new QRCode('qrcode');
qrcode.makeCode("283512348645177031")
</script>
</html>
通过js生成条形码和二维码
最新推荐文章于 2024-08-08 07:15:48 发布