标签:qrcode 后台 level evel pat 标签 二维 ext color
//二维码:
<script type="text/javascript" src="{:C(‘PUBLIC_PATH‘)}js/qrcode.min.js"></script>
<script type="text/javascript" src="{:C(‘PUBLIC_PATH‘)}js/qrcode.js"></script>
<div id="qrcode"></div> //可以更换img标签
<script>
var http = "{$mn_data[‘http‘]}"; //链接用于后台输出
var qrcode = new QRCode(‘qrcode‘, {
text: http,
width: 100,
height: 100,
colorDark : ‘#000000‘,
colorLight : ‘#ffffff‘,
correctLevel : QRCode.CorrectLevel.H
});
</script>
标签:qrcode 后台 level evel pat 标签 二维 ext color
原文地址:http://www.cnblogs.com/yangling520/p/6065095.html