//填充固定位数 function pad(num, n) { var len = num.toString().length; while(len < n) { num = "0" + num; len++; } return num; }
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/8813.html
//填充固定位数 function pad(num, n) { var len = num.toString().length; while(len < n) { num = "0" + num; len++; } return num; }
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/8813.html