最近发现了个页面生成二维码的js工具,在页面调用时可以实时生成二维码,挺不错的的
调用demo代码:
<!DOCTYPE html>
<html>
<head>
<title>Demo page</title>
</head>
<body>
<p>
TODO make a nice looking pure client qrcode generator
even allow download of the image
</p>
<div id="output"></div>
<script src="jquery.min.js"></script>
<script type="text/javascript" src="jquery.qrcode.min.js"></script>
<script>
jQuery(function(){
jQuery('#output').qrcode("12345687965484351354384135");
})
</script>
</body>
</html>
需要的js工具类下载地址如下:
http://download.csdn.net/download/songylwq/10154878