该用户从未签到
|
<%@page contentType="text/html" pageEncoding="UTF-8"%>
+ ] p I( ^$ L8 C<!DOCTYPE html> / M: z1 `0 }6 J
<html>
- g' x5 R+ f+ m0 u; U" b4 o! K/ n( K<head> ( @3 @8 P; C4 `! ^. S8 n# c$ L: f
<meta charset="UTF-8">
K. K$ ?0 M2 ~<title> jquery.qrcode.js</title>
. O2 V: I$ g/ Q" k ` |* o! t5 u/ A" t- s& T% H( W
<%-- <script type="text/javascript" src="<%=request.getContextPath()%>/src/jquery.qrcode.js"></script>
" s! u- n( j3 X( q/ b3 M3 N<script type="text/javascript" src="<%=request.getContextPath()%>/src/qrcode.js"></script>
2 I7 Y! U% m c$ z( Z<script type="text/javascript" language="javascript" src="<%=request.getContextPath()%>/src/jquery-1.9.1.min.js"></script>( |8 y: b f) x4 n; K G) ]
--%>/ H [1 w* e2 p4 F! E6 V. C0 c
* M1 F7 t2 Q8 f/ `! V' B( Z5 u9 w2 @9 A
<%-- <script type="text/javascript" src="<%=request.getContextPath()%>/src/jquery-1.9.1.min.js"></script> D8 ?* \ ~" e# W' _9 A
--%><script type="text/javascript" src="<%=request.getContextPath()%>/src/jquery.qrcode.js"></script>
1 A G4 \ }; E& G9 g0 K- D<script type="text/javascript" src="<%=request.getContextPath()%>/src/qrcode.js"></script>) M9 I" c' N# t6 [' Q! t. J
3 o. p( e8 z) x: v. m<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.qrcode.min.js"></script>; e3 s4 P; Y7 R' w& f9 ^' o
4 l# r; N- T: F2 |
</head> 0 v& v5 X, Z+ Y2 b/ [
<body> . O0 w8 g4 L! } y$ h" G# I+ ]
<p>二维码实例:</p>
6 W) B! L0 @8 I% z9 y<p>1:Render in table</p> 1 ]! F* O! Q. Z# [( f- z
<div id="qrcodeTable"></div> ( O( c/ f, k. g* G3 E1 j/ Q8 T
<p>2:Render in canvas</p> / M, x% c+ W' \' J- |
<div id="qrcodeCanvas"></div>
* Y3 d% c6 E8 F# T$ b<script>& f- @, |1 w2 c/ a/ P5 d- i9 I
jQuery('#qrcodeTable').qrcode({ 2 [! Q( h6 T* C
render : "table",
8 p ~" F9 ~% H! l4 w+ k! K0 | width :128,
0 @' O8 G' ^+ @, V height :128,
% r9 [/ w9 ~- c& R. T( e text : "http://jetienne.com"
; G1 V2 c" U; Z( u' ?/ z9 h! `+ F+ E });
% R; h8 C; ^; S; l9 v jQuery('#qrcodeCanvas').qrcode({ $ H1 T4 y* V1 l q* `* y
width :128,
1 }: \2 `; y! w' V height :128, + c, n: j1 d, P0 g3 P
text : "www.baidu.com" 2 T; I z$ f( c4 v" h) l* Y) V
}); 2 z8 D4 S( v4 { Y
</script> % L- O6 D$ W6 [* D" \! X# h" e: X
</body>
0 V: V! V6 ?, u. Y# t1 V* h/ @</html>3 B& a$ W9 k/ T; c0 ]
7 {% Q# \# A! H }; E1 h8 z4 L |
|