- <!DOCTYPE html>
- <html lang="zh" xmlns:th="http://www.thymeleaf.org">
- <head>
- <meta charset="UTF-8">
- <title>登录</title>
- <!-- 如何引入本地css文件-->
- <link rel="stylesheet" th:href="@{/css/login.css}"/>
- </head>
- <body>
- <div id="content">
- <!-- 错误是提示-->
- <label id="errorMsg" style="color: crimson">[[${errorMsg}]]</label>
- <form id="login_form" action="/login" method="post">
- 姓名:<input type="text" id="uname" name="uname"><br/>
- 密码:<input type="password" id="password" name="password"><br/>
- <button onclick="login()">登录</button>
- </form>
- </div>
- </body>
- </html>
本文转载自网络,原文链接:https://mp.weixin.qq.com/s/D8iSCw6fz3px12QOv3Uo6w
本站部分内容转载于网络,版权归原作者所有,转载之目的在于传播更多优秀技术内容,如有侵权请联系QQ/微信:153890879删除,谢谢!