Working Log
Programming tutorial, tips and tricks
Pages
Home
About Us
Monday, February 4, 2013
convert 1 to 0001 in JavaScript
convert 1 to 0001 in JavaScript
example :
var str = "" + 1
var pad = "0000"
pad.substring(0, pad.length - str.length) + str
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Konsultasi
About Me
admin
Semoga Bermanfaat
View my complete profile
Radio Muslim
Pages - Menu
Home
About Us
No comments:
Post a Comment