jquery.qrcode是js的一个库
主流的浏览器都支持:IE6~10 Chrome Firefox Safari Opera Mobile Safari Android Windows Mobile
方法
qrcode()
参数
text 要编码的字符串地址
width 定义的宽度
height 定义的高度
background 背景色
foreground 前景色
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>生成二维码</title>
<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="qrcode"></div>
</body>
<script>
$("#qrcode").qrcode({
width:64,
height:64,
text:"https://www.baidu.com/"
})
</script>
</html>
主流的浏览器都支持:IE6~10 Chrome Firefox Safari Opera Mobile Safari Android Windows Mobile
方法
qrcode()
参数
text 要编码的字符串地址
width 定义的宽度
height 定义的高度
background 背景色
foreground 前景色
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>生成二维码</title>
<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="qrcode"></div>
</body>
<script>
$("#qrcode").qrcode({
width:64,
height:64,
text:"https://www.baidu.com/"
})
</script>
</html>
尊贵的董事大人
英文标题不为空时 视为本栏投稿
需要关键字 描述 英文标题