标签:style join UNC int prefix code bsp pre turn
1 function PrefixInteger(num, n) { 2 return (Array(n).join(0) + num).slice(-n); 3 }
当数位数不够这,前面补0
原文地址:https://www.cnblogs.com/zhuyujie/p/12809715.html