I need to make a replace of a plus sign in a javascript string. there might be multiple occurrence of the plus sign so I did this up until now:
myString= myString.replace(/+/g, "");#
This is however breaking up my javascript and causing glitches. How do you escape a '+' sign in a regular expression?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…