二维码

来源:互联网 发布:淘宝名字怎么改 编辑:程序博客网 时间:2024/05/06 20:19

二维码

jquery.qrcode.js/jquery-1.8.3.js

<%@ page language="java" import="java.util.*" pageEncoding="GBK"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>  <head>    <base href="<%=basePath%>">    <title>My JSP 'login.jsp' starting page</title>    <meta http-equiv="pragma" content="no-cache">    <meta http-equiv="cache-control" content="no-cache">    <meta http-equiv="expires" content="0">        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">    <meta http-equiv="description" content="This is my page">    <!--    <link rel="stylesheet" type="text/css" href="styles.css">    --><script type="text/javascript" src="js/jquery-1.8.3.js"></script><script type="text/javascript" src="js/jquery.qrcode.min.js"></script><script type="text/javascript" src="http(s)://cdn.goeasy.io/goeasy.js"></script><style>    #qrcodeCanvas{width:450px; height:300px;}</style>  </head>  <body>    <form action="loginServlet" method="post">        <p>用户名:<input type="text" name="username"/></p>        <p>密&nbsp;码:<input type="password" name="pwd"/></p>        <p><input type="submit" value="登录"/><a href="regist.jsp"><input type="button" value="注册"/></a></p>        <div id="qrcodeCanvas" >        </div>    </form>  </body><script type="text/javascript">var goEasy = new GoEasy({             appkey: 'BC-cda5289181ad4c1eb888515fbf378a80'        });jQuery('#qrcodeCanvas').qrcode({    width   : 300,    height  : 300,    text    : "http(s)://goeasy.io/goeasy/publish"}); </script>  </html>
原创粉丝点击