qrcode.min.js

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

// 二维码生成
function erweima() {
      var link="http://*******/home/item.aspx;     //其中link为需生成二维码的链接
      var qrcode = new QRCode("yqcode", {
              text: link,
              width: 200,
              height: 200,
              colorDark: "pink",
              colorLight: "#ffffff",
              correctLevel: QRCode.CorrectLevel.H
      });
}
erweima();

  

 

此时生成的是粉白色的二维码;

 

参考链接:http://code.ciaoca.com/javascript/qrcode/

相关文章:

  • 2021-12-09
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2022-02-11
猜你喜欢
  • 2022-02-11
  • 2022-12-23
  • 2021-12-09
  • 2021-09-10
  • 2022-12-23
  • 2021-12-09
  • 2021-12-09
相关资源
相似解决方案