JavaScript(JS) 產生 Qr Code[jquery.qrcode.js]
JavaScript(JS) 產生 Qr Code[jquery.qrcode.js]
資料來源: https://github.com/jeromeetienne/jquery-qrcode
GITHUB: https://github.com/jash-git/JS_qrcode
Code:
<html>
<head>
<title>basic example</title>
</head>
<body>
<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
-->
<!--<script type="text/javascript" src="../jquery.qrcode.min.js"></script>
-->
<script type="text/javascript" src="../src/jquery.min.js"></script>
<script type="text/javascript" src="../src/jquery.qrcode.js"></script>
<script type="text/javascript" src="../src/qrcode.js"></script>
<p>Render in table</p>
<div id="qrcodeTable"></div>
<p>Render in canvas</p>
<div id="qrcodeCanvas"></div>
<script>
//jQuery('#qrcode').qrcode("this plugin is great");
jQuery('#qrcodeTable').qrcode({
render : "table",
text : "http://jashliao.eu/wordpress/"
});
jQuery('#qrcodeCanvas').qrcode({
text : "http://jashliao.eu/wordpress/"
});
</script>
</body>
</html>