2.19
HTML
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>家庭记账本</title> <link rel="stylesheet" href="styles.css"> </head> <body> <div id="app"> <header> <h1>家庭记账本</h1> <button onclick="showAddTransactionModal()">添加记录</button> </header> <main> <div id="transaction-list"> <!-- Transaction items will be dynamically added here --> </div> </main> <footer> <p>Total Expenditure: <span id="totalExpenditure">0</span></p> </footer> </div> <!-- Add Transaction Modal --> <div id="addTransactionModal" class="modal"> <div class="modal-content"> <span class="close" onclick="closeAddTransactionModal">×</span> <h2>添加记录</h2> <!-- Form for adding a new transaction --> <form onsubmit="addTransaction(); return false;"> <label for="amount">金额:</label> <input type="number" id="amount" required> <label for="category">类别:</label> <input type="text" id="category" required> <button type="submit">添加</button> </form> </div> </div> <script src="app.js"></script> </body> </html>
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?
· 如何调用 DeepSeek 的自然语言处理 API 接口并集成到在线客服系统