正则替换--替换空格

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

http://www.caihaibo.cn/devpro/webfront/965.html

posted @ 2019-05-08 16:26  sarah_wen  阅读(5821)  评论(0)    收藏  举报