Colorful Life2010

cfmx中中英文字长的计算
Weather:热极了~
<cfset s="abc">
<cfoutput>#len(s.getBytes())#</cfoutput>

得到 s 字串长度为 3

<cfset s1="股份有限公司123">
<cfoutput>#len(s1.getBytes())#</cfoutput>

得到 s1 字串长度为 15

[cfmx中中英文字长的计算]的回复

Post a Comment~