Add SKY.tools namespace, Add SKY.tools.ntos method
parent
3fe96e5a20
commit
3137017450
|
@ -131,6 +131,15 @@
|
|||
}
|
||||
}
|
||||
|
||||
this.tools = {
|
||||
ntos: function(n,l){
|
||||
n = n.toString();
|
||||
while (n.length < l){
|
||||
n = "0" + n;
|
||||
}
|
||||
return n;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Final construction */
|
||||
|
|
Loading…
Reference in New Issue