const regex = new RegExp(searchContent, "gi");
return text.replace(regex,'<span style="color:#286CFB;">$&</span>');
生活其实很有趣
const regex = new RegExp(searchContent, "gi");
return text.replace(regex,'<span style="color:#286CFB;">$&</span>');