如何在 Coldfusion 中识别 Form.Fieldname
我是冷聚变新手。我正在学习维护一个程序,我需要帮助。 CF 应用程序的应用程序目录中有许多 .cfm 页面,其中许多页面都以语句开头。可能不是最佳实践,但需要首先解决这个问题。
示例 CodeFromApp.cfm 开头为:
<cfif IsDefined("Form.FieldName")>
<cfset thisFieldName = Form.FieldName>
<cfelse IsDefined('FieldNameParm">
<cfset thisFieldName = FieldNameParm>
</cfif>
找出 Form.FieldName 引用哪个 .cfm 文件的最佳且最简单的方法是什么。我希望我不必浏览 50 个 .cfm 页面,其中许多页面都有数千行代码和注释
I am new to coldfusion. I have a program I am learning to maintain, and I need help. The CF app has many .cfm pages in its app directory, and many of these start out with statements. Probably not the best practice, but need to resolve this issue first.
Example CodeFromApp.cfm, starts with:
<cfif IsDefined("Form.FieldName")>
<cfset thisFieldName = Form.FieldName>
<cfelse IsDefined('FieldNameParm">
<cfset thisFieldName = FieldNameParm>
</cfif>
What would be the best and easiest way to find out, which .cfm file the Form.FieldName is referencing from. I am hoping I do not have to go through 50 .cfm pages with many having thousands of line of codes and comments in them
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论