Coldfusion中带有2个破折号的评论与3个破折号之间的区别 [英] difference between comments with 2 dashes vs 3 in Coldfusion

查看:50
本文介绍了Coldfusion中带有2个破折号的评论与3个破折号之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 3 个破折号代替 2 个破折号的评论有什么区别?

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

示例 <!--在这里评论--> vs <!---在这里评论--->
如果破折号和文本之间有空格,人们也会发现它更具可读性,例如
<!-- 在这里评论-->

推荐答案

两个破折号表示一个 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天全站免登陆