<script src="https://cdn.jsdelivr.net/npm/qrcode/build/qrcode.min.js"></script> <script> $(document).ready(function () { QRCode.toDataURL(window.location.href, { errorCorrectionLevel: 'H' }, function (err, url) { // console.log('QRCode', url) $('#weixin-code').attr('src',...
配合jquery使用 <script src="https://cdn.jsdelivr.net/npm/qrcode/build/qrcode.min.js"></script><script>$(document).ready(function () {QRCode.toDataURL(window.location.href, { errorCorrectionLevel: 'H' }, function (err, url) {// console.log('QRCode', url)$('#weixin-code').attr(...
No assets on CDNJS for versions 1.5.2 and 1.5.3 #355 openedFeb 21, 2024byDaveMorleySensible install breaks with node v20.5.1 #352 openedNov 5, 2023byrisacher 4 Extract the core into its own module #351 openedOct 21, 2023byqubyte ...
initial-scale=1.0" /> <title>Document</title> </head> <body> <div id="self_defined_element"></div> <textarea id="js-info" cols="30" rows="10"></textarea> <script src="https://g.alicdn.com/dingding/h5-dingtalk-login/0.21.0/ddlogin.js"></script> <script> // STEP3:在需要...
1. API toDataURL(text, [options], [cb(error, url)]) ## 参数: text String|Array options: { version Type: Number errorCorrectionLevel Type: String Default: M # low, medium, quartile, high or L, M, Q, H maskPattern Type: Number ...