zhning12 / Coding-Interviews

The Questions, Analysis and Solution of 《Coding Interviews: Questions, Analysis and Solution》

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

js模块--可以用正则来完成替换空格为“%20”这个问题

yangxiaolin opened this issue · comments

str = 'We Are Happy'; str.replace(/\s/g, () => '%20')

是的,非常感谢,已经补充上了