摘要: function capitalize(string){ var words = string.split(' '); var i; for(i = 0; i < words.length; i ++){ words[i] = words[i].charAt(0).toUpperCase()+words[i].slice(1); } ... 阅读全文
posted @ 2018-07-31 11:58 疯狂的前端 阅读(7163) 评论(0) 推荐(0) 编辑