Js替换字符串中的所有空格

name.replace(/\s+/g,"");

posted @ 2019-03-29 21:57  expworld  阅读(3661)  评论(0)    收藏  举报