flask使用之session/cookie

2018-10-11  本文已影响0人  丫丫姑娘_b55e

macro【ˈmækrəʊ】 宏指令, 巨
巨大的,大量的,特别突出的,及厚的
1.可以定义函数
2.调用{% from 'xxx.html' import hello %}
数据过滤
1.解析带样式的content_h2的字符串,使用safe过滤器
{{ content_h2 | safe }}

  1. trim 去掉空格
  2. length 长度
  3. lower 小写
  4. upper 大写
    static加载:
  5. <link href='/static/css/xxx.css'>
    2.<link href='{{ url_for('static', filename = 'css/xxx.css')}}'>
上一篇 下一篇

猜你喜欢

热点阅读