如何将字符串的第一个字母设为大写,但不更改任何其他字母的大小写?
例如:
"this is a test"
"This is a test"
"the Eiffel Tower"
"The Eiffel Tower"
"/index.html"
javascript string letter capitalize
capitalize ×1
javascript ×1
letter ×1
string ×1