标签:
function capitalizeFirstLetter(str) { str = str.toLowerCase(); return str.charAt(0).toUpperCase() + str.slice(1); } console.log(capitalizeFirstLetter("I‘m a little tea pot"));
最后结果是:I‘m A Little Tea Pot
标签:
原文地址:http://www.cnblogs.com/RRirring/p/5715036.html