반응형

this.removeZero = function(value) 

{    

   value = (value == null) ? "" : value;

var valLen = value.length;

var indexVal="";

var removedVal = "";

for(var i=0; i<valLen; i++) {

indexVal = value.substring(i, i+1);

if(indexVal != "0"){

removedVal = value.substring(i);

break;

}

}

return removedVal;

}

반응형

WRITTEN BY
데르벨준

,