django注释有什么作用

395次阅读
没有评论

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

官方解释:

django注释有什么作用

神龙|纯净稳定代理IP免费测试>>>>>>>>天启|企业级代理IP免费测试>>>>>>>>IPIPGO|全球住宅代理IP免费测试

相关文章:

版权声明:wuyou2019-09-29发表,共计271字。
新手QQ群:570568346,欢迎进群讨论 Python51学习
评论(没有评论)