1. 程式人生 > WINDOWS開發 >【每日一包0013】to-capital-case,to-constant-case,to-dot-case

【每日一包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