When should I use # in ColdFusion?
问题 This has been one of the biggest obstacles in teaching new people ColdFusion. When to use # is ambiguous at best. Since using them doesn't often create a problem it seems that most people gravitate to using them too much. So, what are the basic rules? 回答1: I think it may be easier to say where NOT to use #. The only place is in cfif statements, and cfset statements where you are not using a variable to build a string in quotes. You would need to use the # sign in almost all other cases.