教程集 www.jiaochengji.com
教程集 >  Python编程  >  Python 框架  >  正文 django注释有什么用

django注释有什么用

发布时间:2021-01-17   编辑:jiaochengji.com
教程集为您提供django注释有什么用等资源,欢迎您收藏本站,我们将为您提供最新的django注释有什么用资源

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 %}。

官方解释:

e076199d2060b5c54363c6ee7ab707f.png

您可能感兴趣的文章:
django注释有什么用
Django使用的小技巧
django是什么东西
django框架能做什么
django具体做什么
django有什么用
怎么配置django
django可以开发什么用
django框架难学么
django框架是什么

[关闭]
~ ~