Open fly0o0 opened 4 years ago
面试题05. 替换空格
/** * @param {string} s * @return {string} */ var replaceSpace = function(s) { return s.replace(/\s/g, '%20'); };