qrcode-module
theajack
对 qrcodejs 做的封装,加入可导入和ts支持
npm 使用
npm i qrcode-module
document "https://www.google.com";
cdn 使用
以下为 qrcodejs readme原文
QRCode.js
QRCode.js is javascript library for making QRCode. QRCode.js supports Cross-browser with HTML5 Canvas and table tag in DOM. QRCode.js has no dependencies.
Basic Usages
or with some options
var qrcode = "test" text: "http://jindo.dev.naver.com/collie" width: 128 height: 128 colorDark : "#000000" colorLight : "#ffffff" correctLevel : QRCodeCorrectLevelH;
and you can use some methods
qrcodeclear; // clear the code.qrcode; // make another code.
Browser Compatibility
IE6~10, Chrome, Firefox, Safari, Opera, Mobile Safari, Android, Windows Mobile, ETC.
License
MIT License
Contact
twitter @davidshimjs