Skip to content

Instantly share code, notes, and snippets.

@lamb-mei
Created March 26, 2014 10:28
Show Gist options
  • Save lamb-mei/9780438 to your computer and use it in GitHub Desktop.
Save lamb-mei/9780438 to your computer and use it in GitHub Desktop.
AS JS 快速補零
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