标签:padding 每日 func 补齐 start let ade length mat
function padding0ToHeader(num1,num2){
let a = num1.toString()
let b = num2.toString()
let maxLength = Math.max(a.length,b.length)
a=a.padStart(maxLength,0)
b=b.padStart(maxLength,0)
return [a,b]
}
标签:padding 每日 func 补齐 start let ade length mat
原文地址:https://www.cnblogs.com/smart-girl/p/12757749.html