如果使用[underline.js][1]或[Lo-Dash][2],[under划线.string][3]库提供字符串扩展名,包括大写:>_.caprize(string)将字符串的第一个字母转换为>大写。例子:_.capitalie(“foo Bar”)==“foo Bar“[1]: http://underscorejs.org/[2]: http://lodash.com/[3]: https://github.com/epeli/underscore.string