【每日一包0013】to-capital-case,to-constant-case,to-dot-case

[github地址:https://github.com/ABCDdouyae...]

to-capital-case

将用符号分开的字符串用空格分隔开,并且每个单词首字母大写

用法:toCapitalCase(str)

返回:string

to-constant-case

将用符号分开的字符串用空格分隔开,并且每个字母大写

用法:toConstantCase(str)

返回:string

to-dot-case

将用符号分开的字符串用.分隔开

用法:toDotCase(str)

返回:string

评论

暂无评论