数字前面加0 2017-09-04 对不满足位数为最大位数的数字进处理前面加 0function PrefixInteger(num, length) { return (Array(length).join(‘0’) + num).slice(-length);} Please enable JavaScript to view the comments powered by Disqus.