generated from templates/ai-develops
实现用户登录功能 — 前端示例 #2
Reference in New Issue
Block a user
No description provided.
Delete Branch "dev-feature"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
本 PR 实现了 issue 中的“实现用户登录功能”的前端 PoC:
变更点:
login.html(登录页)static/js/login.js(表单校验与本地模拟认证)static/css/style.css(样式)index.html(主页,检查登录状态并支持退出)README.md(运行说明与示例账号)说明:
localStorage。python3 -m http.server 8000,访问http://localhost:8000/login.html。后续建议:
login.js改为请求真实 API 并处理会话/错误。View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.