js 批量替换

                html = html.replace(new RegExp(title,"gm"), "<span style='color:red;'>"+title+"</span>")

 

posted @ 2018-12-30 21:56  漫步CODE人生  阅读(1062)  评论(0编辑  收藏  举报