今天试了用jQuery生成二维码,成功
<%@pagecontentType="text/html" pageEncoding="UTF-8"%><!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>jquery.qrcode.js</title>
<%-- <script type="text/javascript"src="<%=request.getContextPath()%>/src/jquery.qrcode.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/src/qrcode.js"></script>
<script type="text/javascript" language="javascript" src="<%=request.getContextPath()%>/src/jquery-1.9.1.min.js"></script>
--%>
<%-- <script type="text/javascript" src="<%=request.getContextPath()%>/src/jquery-1.9.1.min.js"></script>
--%><script type="text/javascript" src="<%=request.getContextPath()%>/src/jquery.qrcode.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/src/qrcode.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.qrcode.min.js"></script>
</head>
<body>
<p>二维码实例:</p>
<p>1:Render in table</p>
<divid="qrcodeTable"></div>
<p>2:Render in canvas</p>
<divid="qrcodeCanvas"></div>
<script>
jQuery('#qrcodeTable').qrcode({
render :"table",
width :128,
height :128,
text:"http://jetienne.com"
});
jQuery('#qrcodeCanvas').qrcode({
width :128,
height :128,
text:"www.baidu.com"
});
</script>
</body>
</html>
O(∩_∩)O哈哈哈~ 代码呢??? http://www.52itstyle.top//mobcent//app/data/phiz/default/01.png666
代码呢?只有这么点http://www.52itstyle.top//mobcent//app/data/phiz/default/04.png
真的吗
来一个代码示例呗 不对吧?
页:
[1]