摘要:
Project name :Flask_Plan templates:templates static:static 两种 HTTP 请求方法:GET 和 POST在客户机和服务器之间进行请求-响应时,两种最常被用到的方法是:GET 和 POST。 GET - 从指定的资源请求数据。POST - 向 阅读全文
posted @ 2017-12-28 18:01
上官飞鸿
阅读(677)
评论(0)
推荐(0)
摘要:
Project name :Flask_Plan templates:templates static:static 继续前面的代码 修改Flask_Plan.py @app.route('/') def hello_world(): plan = [ { 'date':'20171212', 't 阅读全文
posted @ 2017-12-28 12:44
上官飞鸿
阅读(1888)
评论(0)
推荐(0)
摘要:
Project name :Flask_Plan templates:templates static:static 继续上篇的模板 我们已经可以静态调用模板,包括继承模板,保证了页面的一致性,但是我们查询的东西,页面还都是在html文件中的。 渲染,就可以让我们把动态的内容,放进静态的模板中。 修 阅读全文
posted @ 2017-12-28 01:41
上官飞鸿
阅读(668)
评论(0)
推荐(0)
摘要:
Project name :Flask_Plan templates:templates static:static 继续上一篇文章。 我们不希望每个页面都写一遍引入js,css,导航条……………… 那么我们使用模板继承的方法。 首先修改templates/plan.html 为 templates 阅读全文
posted @ 2017-12-28 00:58
上官飞鸿
阅读(474)
评论(0)
推荐(0)

浙公网安备 33010602011771号