The regular expression literal /\s/g (note the g global flag) matches the space ' ' . 'duck duck go'.replace(/\s/g, '-') replaces all matches of ...
確定! 回上一頁