摘要: //组件 js const leftPad0 = function(v, n) { if (!v) { v = ""; } let prefix = ""; for (let i = 0; i < n; i++) { prefix += "0"; } return (prefix + v).subs 阅读全文