摘要: var text = "过滤敏感词及不文明用语"; var re = /敏感词|文明/gi; var output = text.replace(re, function(sMatch){ return sMatch.replace(/./g,"*"); }); 阅读全文
posted @ 2018-12-20 15:31 黑夜的白羊丿 阅读(2708) 评论(0) 推荐(0) 编辑