padStart 方法,padEnd 方法,es2017 引入了字串補全長度的功能。如果某個字串不夠指定長度,會在頭部或尾部補全。padstart 用於頭部補全,padend 用於 ...
確定! 回上一頁