字符串首写字母小写转大写

str = str[0].toUpperCase() + str.substr(1)  

str这里是字符串

猜你喜欢

转载自blog.csdn.net/weixin_62355341/article/details/123507800