该用户从未签到
|
<%@page contentType="text/html" pageEncoding="UTF-8"%>
5 u7 i( c( _0 k8 p/ [<!DOCTYPE html>
) A7 j! }% Z! U<html> ) {! E. p' z4 E
<head> 4 E- K; j1 n- X* U1 T' `2 r
<meta charset="UTF-8"> 2 Y3 {. P9 ?0 o9 N6 R0 P
<title> jquery.qrcode.js</title> & C3 n4 |$ k; x- |: g& w2 a( U
& y! s5 i7 M- f0 A; S& e* x) M2 e
<%-- <script type="text/javascript" src="<%=request.getContextPath()%>/src/jquery.qrcode.js"></script> # R6 L/ ~3 h. X# h ^" o) l0 r
<script type="text/javascript" src="<%=request.getContextPath()%>/src/qrcode.js"></script>
8 [, y0 B) P* _+ W1 Q<script type="text/javascript" language="javascript" src="<%=request.getContextPath()%>/src/jquery-1.9.1.min.js"></script>8 ?* _& s: ]0 q' i5 [
--%>" V) ]2 F: a6 \; t) Z1 T
. Y3 H9 Z6 k: ?- _2 M t! V% R
<%-- <script type="text/javascript" src="<%=request.getContextPath()%>/src/jquery-1.9.1.min.js"></script>
$ J9 r: c+ [# s' z4 u --%><script type="text/javascript" src="<%=request.getContextPath()%>/src/jquery.qrcode.js"></script>3 k6 s- |( h9 P' q
<script type="text/javascript" src="<%=request.getContextPath()%>/src/qrcode.js"></script>" J+ e7 i- R. a. c
2 u4 F9 k( S' L
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.qrcode.min.js"></script>0 H3 H; ~% N; x5 r! B
# e8 ]2 e; F( W( \8 \& O3 `2 V
</head>
* u7 y4 B9 U+ {# y) h$ j$ m D<body> / ~" l( h3 H8 M# R7 _. ~/ [+ t
<p>二维码实例:</p>
# D& R9 b$ d8 o! F0 ?$ O<p>1:Render in table</p> & g6 V6 k% V% f w9 Q
<div id="qrcodeTable"></div> $ z/ G; `; I6 u7 K9 Q9 S
<p>2:Render in canvas</p>
: m/ U/ g( X6 u1 w& u3 N<div id="qrcodeCanvas"></div>
2 U& w7 I! Z3 `+ y: e<script>' b4 S |: m; L; e
jQuery('#qrcodeTable').qrcode({
! t' r5 A7 ?" a6 S4 y- Y/ x render : "table",
4 v( g7 O5 r, u2 t5 Q6 Q3 _5 I3 r+ X width :128,
/ M7 A* h1 t1 L& ^ height :128,
3 I" b5 e. ~" G text : "http://jetienne.com" 1 N6 a# M4 z, V7 g6 j0 o+ J
});
7 i4 V1 }2 c1 Y7 n. i jQuery('#qrcodeCanvas').qrcode({
* B$ ?) _ u7 _1 M U! E. t& E, N2 r! a width :128, ' s1 L. J+ n! O- K. D' c
height :128, / X- L& J3 j* w8 U( K7 B5 h
text : "www.baidu.com"
6 r3 J6 V3 _$ r, m* { });
D3 L/ t+ F9 ^3 ?: F2 V</script> & r2 S; _9 o3 B. ?; s) w2 f) u
</body> 7 `* m) `2 B D: M" [* E
</html>) p5 B+ \( x$ ?1 p
5 I3 U) b- _/ f/ D |9 |) j
|
|