如何用JavaScript制作字符串大寫的第一個字母?如何使字符串的第一個字母大寫,但不更改任何其他字母的大小寫?例如:"this is a test" -> "This is a test""the Eiffel Tower" -> "The Eiffel Tower""/index.html" -> "/index.html"
如何用JavaScript制作字符串大寫的第一個字母?
繁華開滿天機
2019-05-30 10:37:12