//去除所有空格
var str="你好 今天天气真好!";
str.replace(/\s+/g, "");
js去除所有空格
最新推荐文章于 2024-08-12 23:44:43 发布
//去除所有空格
var str="你好 今天天气真好!";
str.replace(/\s+/g, "");