代码:
function replaceSpace(str) { return str.replace(/\s/g,'%20'); }
思路:
【编程题】替换空格
原文:https://www.cnblogs.com/xiakecp/p/11564296.html