//电子系统5 函数大写(字符串){ return string.charAt(0).toUpperCase()+string.slice(1).toLowerCase(; } 资本化 资本化 (“阿尔弗雷多”)//=>“阿尔弗雷德” 资本化 资本化 (“亚历杭德罗”)//=>“亚历亨德罗 资本化 资本化 (“阿尔伯托”)//=>“阿尔贝托” 资本化 资本化 (“ArMaNdO”)//=>“ArMaNdO” //es6使用破坏 const capitalie=([first,…rest])=>first.toUpperCase()+rest.join(“”).toLowerBase();