<%@ 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>
时间: 2024-10-11 21:12:01