09 2017 档案

摘要:过滤器相关: 一、形式:小写{{ name | lower }} 二、串联:先转义文本到HTML,再转换每行到 标签{{ my_text|escape|linebreaks }} 三、过滤器的参数显示前30个字{{ bio | truncatewords:"30" }} 格式化{{ pub_date 阅读全文
posted @ 2017-09-21 21:44 Dylan_Wu 阅读(1617) 评论(0) 推荐(0)