<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>
Generate barcode and QR code through js
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326433985&siteId=291194637
Recommended
Ranking