Javascript Number padZero(length)
/**/* w w w .ja va 2 s . c o m*/ * Makes a number string with leading zeros. * * @method Number.prototype.padZero * @param {Number} length The length of the output string * @return {String} A string with leading zeros */ Number.prototype.padZero = function(length){ return String(this).padZero(length); };