Created
March 26, 2014 10:28
-
-
Save lamb-mei/9780438 to your computer and use it in GitHub Desktop.
AS JS 快速補零
This file contains 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
var i:int = 13; | |
("000" + i).substr(-4); // 0013 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment