經安全檢測,此網站為安全網站,請放心前往原始網址!

How to output integers with leading zeros in JavaScript

2010年6月8日 - How can I create a Zerofilled value using JavaScript? .... function(size) { var s = String(this); while (s.length < (size || 2)) {s = "0" + s;} return s; }.

stackoverflow.com

網址安全性掃描由 google 提供