1.引入 qrcode.min.js(点击下载demo)

2.html:
  <div ></div>
 js:
var qrcode = new QRCode('qrcode', { //'qrcode'为元素Id
width: 0.58 * window.innerWidth,
height: 0.58 * window.innerWidth,
text: '123456' //二维码内容
});

3.qrcode.makeCode('654321'); //重新生成二维码



相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-11-21
  • 2021-12-27
  • 2021-09-01
  • 2021-07-24
猜你喜欢
  • 2021-12-09
  • 2022-12-23
  • 2021-07-18
  • 2021-08-31
  • 2021-10-30
  • 2021-10-18
相关资源
相似解决方案