开发者

How can I match '&' with JS RegExp

I have a开发者_如何学编程n url-encoded url (so with & replaced to &), but I want to replace all the occurences of & back to & using javascript. Currently I'm using myStr.replace("/&/g", "&"), but that doesn't work (replaces nothing).

Thanks,

Lex


myStr.replace(/&/g, "&")
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜