为什么在函数返回的字符串的开头有空格?
解决方案似乎很容易,但我无法找到原因.
码
<cffunction name="getString" returntype="string">
<cfreturn "hello">
</cffunction>
<cfoutput>
[#getString()#] = getString()
</cfoutput>
Run Code Online (Sandbox Code Playgroud)
产量
[ hello] = getString()
Run Code Online (Sandbox Code Playgroud)