小编Sau*_*rma的帖子

从函数返回字符串时的神秘空间

为什么在函数返回的字符串的开头有空格?
解决方案似乎很容易,但我无法找到原因.

<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)

coldfusion function

5
推荐指数
1
解决办法
109
查看次数

标签 统计

coldfusion ×1

function ×1