该用户从未签到
|
<%@page contentType="text/html" pageEncoding="UTF-8"%> 6 f- w# u: @7 P, S9 y- R: b: p) W
<!DOCTYPE html>
1 ^( ?3 z! P8 I1 q3 M- z$ w<html>
3 Y9 c/ d! e& o' @* F<head>
3 H; T2 D' _& P' A$ z<meta charset="UTF-8"> + w1 w5 ~1 ]/ D3 \7 w: o
<title> jquery.qrcode.js</title> 3 W/ d0 c$ d9 }5 g/ C
. P& N Y4 f7 _' R
<%-- <script type="text/javascript" src="<%=request.getContextPath()%>/src/jquery.qrcode.js"></script>
$ @* Q8 R/ i% b3 i! k" I7 I2 L9 k! ~<script type="text/javascript" src="<%=request.getContextPath()%>/src/qrcode.js"></script>6 x6 L2 s/ [7 q. n9 ?* `1 j
<script type="text/javascript" language="javascript" src="<%=request.getContextPath()%>/src/jquery-1.9.1.min.js"></script>6 J( k. _) l0 P" D* B! X5 \: ]
--%>
& h- ^3 G3 n" r! O- r# I+ K0 g4 m. `5 A3 B8 ?& |$ X2 l
<%-- <script type="text/javascript" src="<%=request.getContextPath()%>/src/jquery-1.9.1.min.js"></script>- y& L6 ^: h2 K
--%><script type="text/javascript" src="<%=request.getContextPath()%>/src/jquery.qrcode.js"></script>
$ |$ N) ~ u" P8 N* S<script type="text/javascript" src="<%=request.getContextPath()%>/src/qrcode.js"></script>
$ b8 Q _$ x; } `+ o1 l1 D2 N
t. T9 x$ L* b) v<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.qrcode.min.js"></script>
1 p) I* R6 y; g# G' L8 a3 N2 R9 k* X" D, m1 ` H; p
</head> ! U, Z d0 I7 O ]+ v( R
<body>
5 j3 E! M* w% j: G' d; }7 n5 Y<p>二维码实例:</p>
! B6 ?2 H2 Z4 m. w<p>1:Render in table</p>
, M; u ~/ S* ^<div id="qrcodeTable"></div> / b" D+ n& _, z! E# x$ Y* W4 p) i
<p>2:Render in canvas</p>
* \& x6 \) Y; ^& ~6 K# _<div id="qrcodeCanvas"></div> 1 x* T) g* C8 `0 p H5 c
<script>
+ _+ D Y7 Z& V5 k jQuery('#qrcodeTable').qrcode({ , g( G' y0 S0 g/ Q; `
render : "table",
3 }/ T& c( j/ o) C- R width :128, 3 Y: {1 @/ j3 P* W3 V+ P8 |
height :128,
( ]9 ~# u' W: {- i+ l text : "http://jetienne.com"
& y' E+ d8 @/ i& {, Z7 H) Y$ V+ Y- X });
/ V$ g) o v, o6 E- H jQuery('#qrcodeCanvas').qrcode({ ' M5 t \3 q3 F+ S9 s5 L4 c7 @9 u
width :128,
2 H0 G5 x2 q( q+ L height :128, * {: Y# m" n: u
text : "www.baidu.com"
$ R5 p1 R. H0 S/ \ }); - Y6 e* ]7 X. K5 ]- B3 \
</script>
' M! g6 g8 G. Z1 U! Z7 D</body>
h# X: I8 F6 t9 ?) N2 ^</html>. \" p% A" e3 v7 w( \
% G! ? g1 Y6 g. k |
|