views/form.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="X-UA-Compatible" content="ie=edge" /> <title>todo crud - add todo</title> </head> <body> <form action="/edit" method="POST"> <fieldset> <legend>add todo</legend> <input type="text" hidden name="id" value="{{ todo.id }}" /> <div class="form-row"> <label for="content"> todo content: <input name="content" type="text" placeholder="todo content..." id="content" value="{{ todo.content }}" /> </label> </div> <div class="form-row"> <label for="is_done"> is complete: <input name="is_done" type="checkbox" id="is_done" value="1" {%if not todo.is_done=='0'%}checked{%endif%} /> </label> </div> <button type="submit">submit</button> </fieldset> </form> </body> </html>
以上所述就是小编给大家介绍的《Node.js + MySQL 实现数据的增删改查》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:- JDBC实现简单增删改查
- Mybatis实现数据的增删改查(CRUD)
- Mybatis实现数据的增删改查(CRUD)
- 使用Kibana实现基本的增删改查操作
- 一行代码整合 Quartz 实现定时任务动态增删改
- Node编写API接口,ajax实现增删改查
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Distributed Algorithms
Nancy A. Lynch / Morgan Kaufmann / 1996-3-15 / USD 155.00
In "Distributed Algorithms", Nancy Lynch provides a blueprint for designing, implementing, and analyzing distributed algorithms. She directs her book at a wide audience, including students, programmer......一起来看看 《Distributed Algorithms》 这本书的介绍吧!