|
@@ -17,7 +17,6 @@
|
|
|
<title>SHIXUN</title>
|
|
|
<!-- 导入字体图标 -->
|
|
|
<link rel="stylesheet" href="./font_mw3z7ts489g/iconfont.css">
|
|
|
-
|
|
|
<style>
|
|
|
* {
|
|
|
margin: 0;
|
|
@@ -291,15 +290,7 @@
|
|
|
}
|
|
|
}
|
|
|
</style>
|
|
|
- <script type="text/javascript">
|
|
|
-
|
|
|
- document.getElementById("btn").onclick = function () {
|
|
|
- // 获取img元素
|
|
|
- // 为了让浏览器发送请求到servlet, 所以一定要改变src
|
|
|
- document.getElementsByTagName("img")[0].src =
|
|
|
- "VerifyCodeServlet?time=" + new Date().getTime();
|
|
|
- };
|
|
|
- </script>
|
|
|
+
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
@@ -332,20 +323,29 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+<script type="text/javascript">
|
|
|
+
|
|
|
+ document.getElementById("btn").onclick = function () {
|
|
|
+ // 获取img元素
|
|
|
+ // 为了让浏览器发送请求到servlet, 所以一定要改变src
|
|
|
+ document.getElementsByTagName("img")[0].src =
|
|
|
+ "VerifyCodeServlet?time=" + new Date().getTime();
|
|
|
+ };
|
|
|
+</script>
|
|
|
</body>
|
|
|
-<%
|
|
|
-
|
|
|
- // 获取浏览器发送过来的cookie, 获取用户信息
|
|
|
- Cookie[] cookies = request.getCookies();
|
|
|
- String email = "";
|
|
|
- if (cookies != null) {
|
|
|
- for (Cookie cookie : cookies) {
|
|
|
- if ("email".equals(cookie.getName())) {
|
|
|
- email = cookie.getValue();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-%>
|
|
|
+<%--<%--%>
|
|
|
+
|
|
|
+<%-- // 获取浏览器发送过来的cookie, 获取用户信息--%>
|
|
|
+<%-- Cookie[] cookies = request.getCookies();--%>
|
|
|
+<%-- String email = "";--%>
|
|
|
+<%-- if (cookies != null) {--%>
|
|
|
+<%-- for (Cookie cookie : cookies) {--%>
|
|
|
+<%-- if ("email".equals(cookie.getName())) {--%>
|
|
|
+<%-- email = cookie.getValue();--%>
|
|
|
+<%-- }--%>
|
|
|
+<%-- }--%>
|
|
|
+<%-- }--%>
|
|
|
+<%--%>--%>
|
|
|
|
|
|
</html>
|
|
|
|