js 二维码生成 插件
<div onclick="liaotian()">点击生成二维码</div>
<div id="qrcode"></div>
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="Public/zui/js/qrcode.js"></script>
<script type="text/javascript">
function liaotian(){
url = window.location.href;
alert(url);
var qrcode = new QRCode("qrcode", {
render: "canvas",
text: url,
width: 150,
height: 150
});
$('#qrcode img').get(0);
}
</script>