django注释有什么用
silencement
2019-07-27 10:09:224251浏览 · 0收藏 · 0评论
Django模板template(html)中使用注释comment。
下面是Django注释符及实例
单行注释:
使用 {# #} 单行注释,例如:
{# Everything you see here is a comment. It won't show up in the HTML output. #}
多行注释:
{% comment %} this is a comment {% endcomment %}
英文解释:Ignores everything between {% comment %} and {% endcomment %}。
官方解释:
关注公众号,随时随地在线学习