qrcodejs2 前端二维码根据url生成二维码


import QRCode from 'qrcodejs2'
 new QRCode(this.$refs.qrCodeWrapper, {
          text: this.url,
          width: this.width,
          height: this.height,
          colorDark: this.colorFront, // 前景色
          colorLight: this.colorBack, // 背景色
          correctLevel: QRCode.CorrectLevel.L // 容错率级别 L M Q H
        })


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM