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

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

posted @ 2017-05-04 22:17  413Xiaol  阅读(2670)  评论(0编辑  收藏  举报