当我试图在嵌套的隐式结构中使用带引号的键值时,我遇到了一个奇怪的问题。
<cfset outer = {
inner = {
standard = "works",
"quoted" = "does not work"
}
} />
<cfdump var=#outer.inner["quoted"]# />这将产生错误:Element quoted is undefined in a CFML structure referenced as part of an expression.
转储整个outer结构也没有任何价值。
这里发生了什么事?
发布于 2012-07-14 00:08:32
你的代码很适合我。你用的是ColdFusion 9.0.1吗?我相信在9.0.1中有一些与嵌套结构/数组相关的bug修复。如果您还没有安装更新程序,请尝试安装。
https://stackoverflow.com/questions/11474149
复制相似问题