UNPKG
hdjs
Version:
latest (4.0.18)
4.0.18
4.0.16
4.0.15
4.0.13
4.0.12
4.0.11
4.0.10
4.0.9
4.0.8
4.0.7
4.0.6
4.0.5
4.0.3
4.0.2
4.0.1
1.2.105
1.2.102
1.2.101
1.2.100
1.2.99
1.2.98
1.2.97
1.2.96
1.2.93
1.2.90
1.2.89
1.2.88
1.2.83
1.2.82
1.2.80
1.2.79
1.2.78
1.2.77
1.2.76
1.2.72
1.2.69
1.2.68
1.2.67
1.2.66
1.2.65
1.2.63
1.2.62
1.2.61
1.2.60
1.2.59
1.2.58
1.2.57
1.2.55
1.2.52
1.2.51
1.2.50
1.2.49
1.2.48
1.2.47
1.2.46
1.2.45
1.2.43
1.2.42
1.2.41
1.2.39
1.2.38
1.2.37
1.2.36
1.2.35
1.2.33
1.2.32
1.2.31
1.2.30
1.2.29
1.2.28
1.2.27
1.2.26
1.2.25
1.2.23
1.2.22
1.2.21
1.2.20
1.2.19
1.2.18
1.2.16
1.2.12
1.2.11
1.2.10
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.3
1.2.2
1.2.1
1.2.0
1.1.12
1.1.11
1.1.10
1.1.1
1.1.0
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
hdjs framework
github.com/houdunwang/hdjs
houdunwang/hdjs
hdjs
/
component
/
qrcode.js
14 lines
(13 loc)
•
312 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//生成二维码
define
([
'jquery'
,
'package/jquery.qrcode.min'
],
function
(
$
) {
return
function
(
el, text
) {
return
$(el).
qrcode
(text);
var
canvas = $(el)[
0
];
QRCode
.
toCanvas
(canvas, text,
function
(
error
) {
if
(error)
console
.
error
(error) }) } });