📅  最后修改于: 2022-03-11 15:03:14.553000             🧑  作者: Mango
myString = 'the quick green alligator...';
myString.replace(/^\w/, (c) => c.toUpperCase());
myString = ' the quick green alligator...';
myString.trim().replace(/^\w/, (c) => c.toUpperCase());