Is there a simple way to convert a string to title case?(有没有简单的方法可以将字符串转换为标题大小写?)
Egjohn smith
becomes John Smith
.(例如, john smith
John Smith
成为John Smith
。) I'm not looking for something complicated like John Resig's solution , just (hopefully) some kind of one- or two-liner.(我并不是在寻找像John Resig的解决方案那样复杂的东西,只是(希望)某种一线或两线。)
ask by MDCore translate from so