ITeye博客

javascript 替换所有指定的字符

zwxiaole · 2015-03-30 20:35 · web 前端 · Web前端 · Markdown

function del_html_tags(str,reallyDo,replaceWith) { 

    var e=new RegExp(reallyDo,"g"); 

    words = str.replace(e, replaceWith); 

    return words; 

}

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。