js 批量替换

                html = html.replace(new RegExp(title,"gm"), "<span style='color:red;'>"+title+"</span>")
原文地址:https://www.cnblogs.com/scode2/p/10200838.html