数字のゼロ埋め admin | 2009年10月3日 指定の桁数になるまで左端にゼロを追加していく function zeroume(num,len){ var tmp=""+num; while(tmp.length<len){ tmp="0"+tmp; } return tmp; }