Methods
-
<static> camelize(s)
-
将用-,_连接的字符串转化为驼峰命名法,并返回
Parameters:
Name Type Description s
string 原字符串
Returns:
转化结果
- Type
- string
-
<static> reverseWords(s)
-
字符串按word反转:"my name is tom" => "ym emna si mot"
Parameters:
Name Type Description s
string 原字符串
Returns:
反转后字符串
- Type
- string
-
<static> trim(s)
-
去除字符串两端空格符
Parameters:
Name Type Description s
string 原字符串
Returns:
去除两端空白符后的字符串
- Type
- string