我正在开发一个遗产应用程序,他们正在使用Application.cfm,现在该文件无法转换为Application.cfc,因为这个站点太大了,并且可能会使它变得不稳定。
在其中一个页面中,我将表单字段定义为:keys[],以返回一个数组。我已经定义了
<cfset this.sameformfieldsasarray = "true">在Application.cfm中,在cfapplication标记下
但这似乎不起作用,它只是创建列表而不是数组。
所以问题是:
我使用的是coldfusion版本11
发布于 2017-05-27 16:59:35
我认为您将值设置为字符串而不是布尔值。
<cfset this.sameformfieldsasarray = "true">应该是
<cfset this.sameformfieldsasarray = true>还可以考虑使用application.cfc
https://stackoverflow.com/questions/44218878
复制相似问题