【发布时间】:2014-06-04 19:09:16
【问题描述】:
如何输出类似使用 cfoutput 标签的东西。
<cfoutput>
<this is my word="word" value="#abcg#">
</cfoutput>
当我使用单引号时,这不会给我任何东西,它会像单引号一样打印它
<cfoutput>
<'this is my word="word" value="#abcg#"'>
</cfoutput>
结果是:
<'this is my word="word" value="#abcg#"'>
我怎样才能得到只是
<this is my word="word" value="#abcg#">
感谢您的帮助
【问题讨论】:
-
尖括号是您尝试打印的字符串的一部分吗?
-
大多数浏览器会看到“”并将它们视为带有未知标签的 HTML 容器。
-
是的,带尖括号
-
带有
标签的输出不同,它在打印左尖括号后会换行
-
你想在屏幕上显示
#abcg#,还是#abcg#的值?
标签: coldfusion cfoutput