javascript - Uncaught ReferenceError: QRCode is not defined -
i tried implement qrcode in html-template:
<div id="qrcode"> <script type="text/javascript"> new qrcode(document.getelementbyid('qrcode'), 'http://jindo.dev.naver.com/collie'); </script> </div>
in qrcode.min.js have this:
var qrcode = new qrcode(document.getelementbyid("qrcode"), { text: "http://jindo.dev.naver.com/collie", width: 128, height: 128, colordark : "#000000", colorlight : "#ffffff", correctlevel : qrcode.correctlevel.h });
but still error , qrcode don't show off..
here path:
<script "type=text/javascript" src="qrcode.min.js"></script>
solved
i solved issue.
the problem integrated :
var qrcode = new qrcode(document.getelementbyid("qrcode"), { text: "http://jindo.dev.naver.com/collie", width: 128, height: 128, colordark : "#000000", colorlight : "#ffffff", correctlevel : qrcode.correctlevel.h });
but never integrated function "qrcode". https://github.com/davidshimjs/qrcodejs/blob/master/qrcode.min.js
there documentation implementation of qrcodes. needed function in qrcode.min.js , working.
Comments
Post a Comment