原文链接: http://geraldl.net/js/qrgen-test
github : https://github.com/gera2ld/jsqrgen
使用二维码算法,在canvas绘制二维码信息
用法很简单
<script type="text/javascript" src="qrgen.min.js"></script>
<div id=qrcode></div>
<script type="text/javascript">
var qrc=new QRCanvas({
data:location.href});
qrc.appendTo(document.getElementById('qrcode'));
</script>