在Coldfusion中,带有2个虚线的注释和3个注释之间的差异 [英] difference between comments with 2 dashes vs 3 in Coldfusion

查看:236
本文介绍了在Coldfusion中,带有2个虚线的注释和3个注释之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用3而不是2破折号的评论有什么区别?

What is the difference between comments using 3 instead of 2 dashes?

示例<! - comment here - > vs <!---评论在这里--->

如果有一个破折号和文本之间的空格,例如

<! - comment here - >

推荐答案

两个破折号表示html注释。 html注释中的内容 包含在CF页面的输出中,即在html源中可见。

Two dashes signify an html comment. Content within html comments are included in the output of CF pages ie viewable in the html source.

三个破折号表示ColdFusion注释。任何包含在注释中的内容都被ColdFusion编译器忽略,并且不是包含在html输出中。

Three dashes signify a ColdFusion comment. Anything enclosed within the comments is ignored by the ColdFusion compiler, and is not included in the html output.

这篇关于在Coldfusion中,带有2个虚线的注释和3个注释之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆