剑指offer - 替换空格 - JavaScript

题目描述: 请实现一个函数,将一个字符串中的每个空格替换成“%20”。例如,当字符串为 We Are Happy.则经过替换之后的字符串为 We%20Are%20Happy。

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×