mirror of https://github.com/jkjoy/sunpeiwen.git
5 lines
112 B
JavaScript
5 lines
112 B
JavaScript
|
module.exports = function pad (num, size) {
|
||
|
var s = '000000000' + num;
|
||
|
return s.substr(s.length - size);
|
||
|
};
|