摘要:
标签下面的部分概述了常见的Django标签。if/else{%if%} 标签 对一个变量值进行测试,如果结果为true,系统将会显示在{%if%} 和 {%endif%}之间的一切,看个例子:{% if today_is_weekend %} Welcome to the weekend!{% endif %} An {% else %} tag is optional:{% if today_is_weekend %} Welcome to the weekend!{% else %} Get back to work.{% endif %}{%if%} 标签接受 a... 阅读全文
posted @ 2013-11-19 09:53
青岛欧姆网络科技
阅读(452)
评论(0)
推荐(0)

浙公网安备 33010602011771号