02 2024 档案

摘要:图片+跳转 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>我的小米</title> </head> <body> <h1>红米K70</h1> <img src="/static/mi.jpg" style="width: 8 阅读全文
posted @ 2024-02-24 20:50 台友涛 阅读(8) 评论(0) 推荐(0)
摘要:功能简介: 用户有用户名(user),手机号(mobile),邮箱(email),密码(password). user为主键,mobile唯一保证一个手机号只能注册一个用户,邮箱不唯一并且可为空.故这里用户可以使用user和mobile登录,mobile还可以用找回密码,email仅用于找回密码 在 阅读全文
posted @ 2024-02-24 20:45 台友涛 阅读(334) 评论(0) 推荐(0)
摘要:当不输入用户或密码就登录时 不勾选用户协议就登录时 form表单的修改,引入了onsubmit控件,提交表单时,调用validateForm函数 <form action="/home" method="post" onsubmit="return validateForm()"> validate 阅读全文
posted @ 2024-02-22 20:09 台友涛 阅读(130) 评论(0) 推荐(0)
摘要:当用户或密码为空时,无法提交,并提示用户 使用required表单控件 修改内容如下 <input class="form-control" id="Username" placeholder="请输入用户名" name="username" required> <input type="passw 阅读全文
posted @ 2024-02-22 15:57 台友涛 阅读(70) 评论(0) 推荐(0)
摘要:python前后端交(web_login.py). from flask import Flask, render_template, request, redirect, url_for, session, flash app = Flask(__name__) @app.route('/logi 阅读全文
posted @ 2024-02-22 13:22 台友涛 阅读(130) 评论(0) 推荐(0)