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

 

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

 

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

<div ></div>

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

width:300,

height:300,

text:'https://xxx/index.html?activityId='+activityId

});

相关文章:

  • 2022-02-11
  • 2021-07-07
  • 2021-09-01
  • 2021-07-24
  • 2021-03-31
猜你喜欢
  • 2021-04-11
  • 2021-11-14
  • 2022-12-23
相关资源
相似解决方案