通过实战项目巩固所学知识
涵盖:DOM 操作、事件委托、LocalStorage 持久化、CRUD 逻辑。
// 基本结构
// index.html
// <!DOCTYPE html>
// <html lang="zh-CN">
// <head>
// <meta charset="UTF-8">
// <meta name="viewport" content="width=device-width, initial-scale=1.0">
// <title>Todo List</title>
// <style>
// /* 样式 */
// </style>
// </head>
// <body>
// <div class="container">
// <h1>Todo List</h1>
// <form id="todo-form">
// <input type="text" id="todo-input" placeholder="添加新任务...">
// <button type="submit">添加</button>
// </form>
// <ul id="todo-list"></ul>
////