提交 41a25e91 编写于 作者: 鞋子不会飞's avatar 鞋子不会飞

新增前段模板

上级 b81b8571
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<form action="/login" method="post">
<label for="">用户名: </label><input type="text" name="username"><br/>
<label for="">密码: </label><input type="password" name="password"><br/>
<input type="submit" value="登录"><br/>
</form>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<form action="/login" method="post">
<label for="">用户名: </label><input type="text" name="username"><br/>
<label for="">密码: </label><input type="password" name="password"><br/>
<input type="submit" value="登录"><br/>
</form>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<form action="/login" method="post">
<label for="">用户名: </label><input type="text" name="username"><br/>
<label for="">密码: </label><input type="password" name="password"><br/>
<input type="submit" value="登录"><br/>
</form>
</body>
</html>
\ No newline at end of file
......@@ -181,7 +181,7 @@ def get_session():
@user_blu.route('/login_use_session', methods=['GET', 'POST'])
def login():
def login_use_session():
if request.method == 'GET': # GET 展示页面
# 会读取出静态文件的内容包装为响应对象, 并且根据文件类型自动设置content-type
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册