码迷,mamicode.com
首页 > 其他好文 > 详细

简单的生成二维码

时间:2017-08-19 15:52:07      阅读:131      评论:0      收藏:0      [点我收藏+]

标签:code   java   gen   ready   enter   resource   item   lan   function   

<%@ page language="java" pageEncoding="UTF-8"%>
<div class="pro-cod" style="text-align: center; line-height: 100px;">

  <div id="qrcode"></div>

  <input type="button" class="criteria-btn" value="返回" onclick="javascript:history.go(-1)" />
</div>


<script type="text/javascript" src="<ls:templateResource item=‘/resources/plugins/qrcode/jquery.qrcode.min.js‘/>"></script>
<script type="text/javascript">
var contextPath = "${contextPath}";
$(document).ready(function() {
jQuery(‘#qrcode‘).qrcode({
width : 200,
height : 200,
text : "http://diamonds.legendshop.cn/views/666"  // 这里的链接是扫二维码后要跳转的链接
});
});
</script>

简单的生成二维码

标签:code   java   gen   ready   enter   resource   item   lan   function   

原文地址:http://www.cnblogs.com/wasdwasd/p/7396591.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!