js模块--可以用正则来完成替换空格为“%20”这个问题
yangxiaolin opened this issue · comments
yangxiaolin commented
str = 'We Are Happy'; str.replace(/\s/g, () => '%20')
Phoebe commented
是的,非常感谢,已经补充上了
The Questions, Analysis and Solution of 《Coding Interviews: Questions, Analysis and Solution》
yangxiaolin opened this issue · comments
str = 'We Are Happy'; str.replace(/\s/g, () => '%20')
是的,非常感谢,已经补充上了