Created
July 22, 2014 14:39
-
-
Save jikeytang/c317415fdc6bab637932 to your computer and use it in GitHub Desktop.
[ Javascript ] - 20140723-题目1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
如何给数字补充固定位数前导0? | |
比如3前面补3位0,结果为0003。 | |
4前面补2位0,结果为004。 | |
PS: | |
1. 回复时注意加上下面这句话,才会有语法高亮或格式缩进。 | |
```javascript | |
// you code | |
``` | |
2. 粘贴代码时请使用shift+tab,缩进前面的空白。 |
xianlaioy
commented
Jul 29, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment