jquery生成二维码

1. 下载qrcode.js文件,引入文件中。

<script type="text/javascript" src="qrcode.min.js"></script>

2. 对响应连接生成二维码。

<div id="qrcode" ></div>

var qrcode = new QRCode(document.getElementById('qrcode'),{

width:300,

height:300,

text:'https://b-stg.pingan.com.cn/static/lum/cfss/amsp/activity/detail/index.html?activityId='+activityId

});

猜你喜欢

转载自www.cnblogs.com/Super-scarlett/p/9025373.html