Discuss / JavaScript / 首字母大写

首字母大写

Topic source

NotFatCat

#1 Created at ... [Delete] [Delete and Lock User]
  return arr.map(function(name){
        return  name.charAt(0).toUpperCase()+name.substring(1, name.length).toLowerCase(); 


    });

  • 1

Reply