Javascript javascript replace all spaces 代码答案。 ... replaces space with '_' str = str.replace(/ /g, "_"); // or str = str.split(' ').join('_');.
確定! 回上一頁