[minor] [fix] cint
This commit is contained in:
parent
fc2160805b
commit
54aec0b623
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ function cint(v, def) {
|
|||
if(v===false)
|
||||
return 0;
|
||||
v=v+'';
|
||||
v=lstrip(v, ['0']);
|
||||
if(v!=="0")v=lstrip(v, ['0']);
|
||||
v=parseInt(v);
|
||||
if(isNaN(v))v=def===undefined?0:def;
|
||||
return v;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue