摘要: var str = 'aa dd c dddd e';str = str.replace(/\s+/g, ' ');//将字符串里的多个连续空格替换成一个空格 阅读全文
posted @ 2018-09-09 11:16 小小lomo 阅读(1202) 评论(0) 推荐(0)