摘要: const str = ',,,,' + ',,,'; const reg = /|\s))/g; console.log(str.replace(reg, '<$1p')); 阅读全文
posted @ 2017-09-19 14:46 金色元年 阅读(127) 评论(0) 推荐(0) 编辑