Lyrics


< More and better />


数字前面加0

对不满足位数为最大位数的数字进处理前面加 0

function PrefixInteger(num, length) {
return (Array(length).join(‘0’) + num).slice(-length);
}