// 首字母大写的方法
function firstWordUpperCase(value){
return value.slice(0, 1).toUpperCase() + value.slice(1).toLowerCase();
}
// 使用
firstWordUpperCase('jacascript'); // "Jacascript"
// 首字母大写的方法
function firstWordUpperCase(value){
return value.slice(0, 1).toUpperCase() + value.slice(1).toLowerCase();
}
// 使用
firstWordUpperCase('jacascript'); // "Jacascript"
747

被折叠的 条评论
为什么被折叠?