|
该用户从未签到
|
<%@page contentType="text/html" pageEncoding="UTF-8"%> ' `: p2 A; m% F% K) S( g2 k
<!DOCTYPE html> a& e! m" l0 j: K
<html> ( d9 g8 @$ m7 G( E, [
<head>
3 o- t) }6 k) {" i+ [8 c<meta charset="UTF-8">
" I! o+ D5 ?% @6 Y<title> jquery.qrcode.js</title> $ {2 h& o7 y( i; a. o2 T+ p: A% H
& S9 b" l% \, `$ b- U" G; u/ H$ F% s
<%-- <script type="text/javascript" src="<%=request.getContextPath()%>/src/jquery.qrcode.js"></script> # y1 j5 S; W+ }3 N+ ^
<script type="text/javascript" src="<%=request.getContextPath()%>/src/qrcode.js"></script>
) \# [! \+ A9 q: x% S z6 V/ {8 z" Z<script type="text/javascript" language="javascript" src="<%=request.getContextPath()%>/src/jquery-1.9.1.min.js"></script>, H- j) b* Y7 J4 ?
--%>
- Z K9 m/ B: H) S' \* _0 O& T$ j9 ~
; R: M% _0 ?( E, @7 l0 x<%-- <script type="text/javascript" src="<%=request.getContextPath()%>/src/jquery-1.9.1.min.js"></script>8 x: O' v( O: A$ O1 G
--%><script type="text/javascript" src="<%=request.getContextPath()%>/src/jquery.qrcode.js"></script>
; i( Z. I" P r/ _1 T/ G! h<script type="text/javascript" src="<%=request.getContextPath()%>/src/qrcode.js"></script>
- m$ E7 }( i0 x0 Q; H S# _ O* e- u: Q O: b2 p N3 |" M
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.qrcode.min.js"></script>$ [& v. {4 A1 y! G5 m0 o7 r
6 y' x5 F8 ]3 m z
</head>
9 X( y, A% y# j$ S- i1 }<body>
5 {; |: G0 B' J; }( e<p>二维码实例:</p>
; P3 [6 P- B# L, a7 P+ h/ _0 o- p M<p>1:Render in table</p>
; z+ _( x$ B& e<div id="qrcodeTable"></div> * m4 y) A8 I9 C( P4 R4 ]: X6 [$ T
<p>2:Render in canvas</p>
5 k! N( V. K4 J1 h, B<div id="qrcodeCanvas"></div> 4 i. Q. o% G6 i. c: |3 s$ `
<script># \0 N* y3 I; h* O
jQuery('#qrcodeTable').qrcode({ 8 M- |" u. O3 p
render : "table", W' |& g0 Y. g1 X
width :128, 6 U! y6 Z: N% ~" |: |1 |
height :128,
3 [( R8 O4 [0 D$ r3 B text : "http://jetienne.com"
$ f& R4 o. P0 Y7 X2 s });
, X) l; x. g+ e% q) h/ D jQuery('#qrcodeCanvas').qrcode({ + _; D7 B) A7 {7 e0 t, a a
width :128, 4 i# |+ S) W( [$ R
height :128, 7 t2 J4 ^8 O* @' n, I' s
text : "www.baidu.com"
% W* N1 d+ H& Y. H- q- A1 b }); # H" s. ~% t, B" j6 F9 O
</script> - k$ T: S7 H1 M7 r7 R2 E9 z
</body>
3 r, O3 M- a. ]6 H# Y6 B7 |</html>
2 a' S5 O- ]6 I( e1 C4 `1 _# A. v$ w: S* S6 m9 k8 c
|
|