Discuss / JavaScript / 首字母大写

首字母大写

Topic source

醉后诀

#1 Created at ... [Delete] [Delete and Lock User]

return arr.map(function(x){ x=x.toLowerCase() x=x[0].toUpperCase()+x.slice(1) return x })


  • 1

Reply