参考代码:
<canvas id="canvas"></canvas> <script type="text/javascript"> var bw = new BWIPJS; var opts = {}; var rot = 'N'; bw.bitmap(new Bitmap); bw.scale(2, 2); bw.push("THIS IS CODE 93"); bw.push(opts); bw.call("code93", function(e) { bw.bitmap().show('canvas', rot); }); </script>