正则替换--替换空格

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

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

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