str = 'aaaa-aaa-bbb' str.replace(/\-\w/g,m=>m.slice(1).toUpperCase())
点赞 1

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务