📜  javascript 将字符串大写 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:20.742000             🧑  作者: Mango

代码示例1
const capitalize = str => str.charAt(0).toUpperCase() + str.slice(1)

capitalize("follow for more")
// Result: Follow for more