javascript - Remove '=' character from a string -
this question has answer here:
i have string follows:
var string = "=09e8d76c-c54c-32e1-a98e-7e654d32ec1f";
how remove '=' character this? i've tried couple of different ways '=' character seems causing conflict
if it's first character work...
var string = "=09e8d76c-c54c-32e1-a98e-7e654d32ec1f".substring(1);
if it's not first character work...
var string = "=09e8d76c-c54c-32e1-a98e-7e654d32ec1f".replace("=", "");
if it's in there more once work...
var string = "=09e8d76c-c54c-32e1-a98e-7e654d32ec1f".split("=").join("");
Comments
Post a Comment