yourString.replace(/^[a-z]/,函数(m){return m.toUpperCase()});(如果经常使用,可以将其封装在函数中,甚至可以将其添加到String原型中)