如何用JavaScript制作字符串大写的第一个字母?
如何使字符串的第一个字母大写,但不更改任何其他字母的大小写?
例如:
"this is a test" -> "This is a test"
"this is a test"
"This is a test"
"the Eiffel Tower" -> "The Eiffel Tower"
"the Eiffel Tower"
"The Eiffel Tower"
"/index.html" -> "/index.html"
"/index.html"
神不在的星期二
白猪掌柜的
慕雪6442864
相关问题
相关分类