JavaScript 轉字串首字為大寫。 下面三種方法都是將字串的首字轉大寫。 let s = 'hello'; let s1 = s.charAt(0).toUpperCase() + s.slice(1); let s2 ...
確定! 回上一頁