REEMPLAZAR CARACTERES CON JAVASCRIPT

function replaceAll(text, busca, reemplaza)
{
if (text === undefined) {
   //txt = "x is undefined";

return "";

} else {
   //txt = "x is defined";

while (text.toString().indexOf(busca) != -1)
text = text.toString().replace(busca,reemplaza);
return text;

}

}



Comentarios

Entradas populares de este blog

Subir proyecto al repositorio existente en Bitbucket

Sonarqube : The component parameter is missing