JavaScript Demo: String.padStart(). xxxxxxxxxx. 1. const str1 = '5';. 2. . 3. console.log(str1.padStart(2, '0'));. 4. // expected output: "05".
確定! 回上一頁