padEnd 和 padStart 接受相同的参数。 1. maxLength. 最终字符串的长度。 const result = string.padStart(5); result.length; // 5.
確定! 回上一頁