js中获取连接地址生成二维码图片
<!DOCTYPE html>
<html>
<head>
<!--引入jquery,jquery.qrcode-->
<script type='text/javascript'src='http://cdn.staticfile.org/jquery/2.1.1/jquery.min.js'></script>
<script type="text/javascript"src="http://cdn.staticfile.org/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>
</head>
<body>
<div id = "qrid"></div>
</body>
<script>
$(function(){
var qrstr = "https://www.baidu.com";
$('#qrid').qrcode(qrstr);//不指定二维码大写
$('#qrid').qrcode({width: 800,height: 800,text: qrstr});//指定二维码大小
});
</script>
</html>