补位代码的else问题??加了else之后 0-10显示为underfined
function checkTime(i){
if(i<10) {i="0"+i;}
return(i);
}
function checkTime(i){
if(i<10){i="0"+i;}
else {return(i);}
}
function checkTime(i){
if(i<10) {i="0"+i;}
return(i);
}
function checkTime(i){
if(i<10){i="0"+i;}
else {return(i);}
}
2015-10-22
举报